Animated Wallet

January 16, 2023 ยท View on GitHub

AnimatedWallet component can be used to provide a fascinating experience of wallet with animated cards.

๐ŸŽฌ Preview


AnimatedWallet
alt tag

Default Usage


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

const WalletScreen = () => (
  <View style={style.container}>
    <AnimatedWallet />
  </View>
);

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

export default WalletScreen;

Custom Usage


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

const WalletScreen = () => (
  <View style={style.container}>
    <AnimatedWallet
      size={260}
      primaryColor={'#3F0071'}
      secondaryColor={'#FB2576'}
      numberOfCards={3}
    />
  </View>
);

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

export default WalletScreen;

๐ŸŽฌ Custom Usage Preview


alt tag

Properties

PropsDefaultTypeDescription
size240numberSize of Wallet.
numberOfCards2numberNumber of cards in Wallet. Note : Max 3.
primaryColor#fca819stringPrimary color of Wallet.
secondaryColor#ff2b3estringSecondary color of Wallet.

๐ŸŽฌ Preview Example


Animated Wallet