Wireless Charger

January 16, 2023 ยท View on GitHub

WirelessCharger component can be used to provide a sensational animation when user charge their phone wirelessly.

๐ŸŽฌ Preview


WirelessCharger
alt tag

Default Usage


import React from 'react';
import { StyleSheet, View } from 'react-native';
import { WirelessCharger } from 'react-native-skia-catalog';

const WirelessChargerScreen = () => (
  <View style={styles.container}>
    <WirelessCharger />
  </View>
);

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
  },
});

export default WirelessChargerScreen;

Custom Usage


import React from 'react';
import { StyleSheet, View } from 'react-native';
import { WirelessCharger } from 'react-native-skia-catalog';

const WirelessCharger = () => (
  <View style={styles.container}>
    <WirelessCharger
      size={350}
      outerCircleColor={'#513788'}
      wifiWaveColor={'#D979CA'}
      thunderColor={'#ffe767'}
    />
  </View>
);

const styles = StyleSheet.create({
  container: {
    justifyContent: 'center',
    alignItems: 'center',
    flex: 1,
  },
});

export default WirelessCharger;

๐ŸŽฌ Custom Usage Preview


alt tag

Properties

PropsDefaultTypeDescription
size350numberSize of WirelessCharger
outerCircleColor#513788stringColor of Outer small-circles
wifiWaveColor#D979CAstringColor of the wifi-waves
thunderColor#ffe767stringColor of the thunder-sign

๐ŸŽฌ Preview Example


Wireless Charger