Animated CheckMark

March 1, 2023 ยท View on GitHub

The AnimatedCheckMark component can be used to provide a delightful experience on success of any particular task.

  • AnimatedCheckMark component has three different variants: Simple, Fade and Circular.

๐ŸŽฌ Preview


AnimatedCheckMark
alt tag

Default Usage


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

const AnimatedCheckMarkScreen = () => (
  <View style={styles.container}>
    <AnimatedCheckMark />
  </View>
);

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

export default AnimatedCheckMarkScreen;

Custom Usage


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

const AnimatedCheckMarkScreen = () => (
  <View style={styles.container}>
    <AnimatedCheckMark
      size={100}
      speed={1200}
      multiColor={true}
      checkMarkType={CheckMarkEnum.CIRCULAR}
      centerImageColor={'#0096FF'}
    />
  </View>
);

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

export default AnimatedCheckMarkScreen;

๐ŸŽฌ Custom Usage Preview


alt tag

Properties

PropsDefaultTypeDescription
checkMarkType"Simple""Simple" / "Fade" / "Circular"Type of AnimatedCheckMark. CheckMarkEnum can be used to specify the type. Ex. CheckMarkEnum.CIRCULAR.
size200numberSize of AnimatedCheckMark.
speed2500numberSpeed of component Animation.
circleOneColor#0288D1stringColor of outer circle.
circleTwoColor#0288D1stringColor of inner circle.
centerImageSource-ImageSourcePropType / stringSource of center Image.
centerImageColor#FFFFFFstringColor of center Image.
circleParticleColor#0288D1stringColor of circle particle.
starParticleColor#0288D1stringColor of star particle.
showParticlefalsebooleanIt decides whether to Show or Hide particles.
multiColorfalsebooleanIt decides whether to true or false of the multiColor border color of Circular type Checkmark.
topBorderColor#EC407AstringBorder top color.
rightBorderColor#0288D1stringBorder right color.
bottomBorderColor#FFAC1CstringBorder bottom color.
leftBorderColor#69C7FFstringBorder left color.
borderColor#0288D1stringWhole Border color.

๐ŸŽฌ Preview Example


Animated Checkmark