Skip to content

Kida007/react-native-medium-clap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-medium-clap

NPM VERSION LICENSE

Highly Customizable Medium Clap Component for react-native & react-native-web.

Installation

1) Make sure to first install & configure react-native-svg

2) Install react-native-medium-clap

npm install react-native-medium-clap

Usage

import MediumClap from 'react-native-medium-clap'


const ClapExample = () => {
  
  const onClapIncrease = (clap) => console.log(`Number of Claps: ${clap}`)

  return (
    <View>
      <MediumClap
        onClapIncrease={onClapIncrease}
        color="07AF6A"
        clapSize={50}
        translateY={30}
        countRadius={15}
        countTextStyle={{ fontSize:16 }}
        maxClapCount={45}
      />
    </View>

  )

}

Configuration

Property Type Default Description
onClapIncrease function () => {} callback function on clap increase
clapSize number 45 use this to change the size of clap icon
color string #07AF6A use this to change primary color of component
translateY number 20 use this to change the translation in y direction
maxClapCount number 50 use this to limit the clap count increase
countRadius number 20 use this to change the size of count component/circle
countTextStyle style {} use this to apply styles to count text

Showcase

Demo for the component

Author

This library is brought to you by Piyush Gupta ( kida007 )

License

MIT

About

medium clap animation for react-native & react-native-web

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published