React Native Scratch Card which temporarily hides content from a user
Check out it on dribble.
yarn add rn-scratch-card
import { ScratchCard } from 'rn-scratch-card'
// ...
<ScratchCard
source={require('./scratch_foreground.png')}
brushWidth={50}
onScratch={handleScratch}
style={styles.scratch_card}
/>
cd rn-scratch-card
yarn install
cd example
yarn install
yarn run react-native run-ios
If you are launching project under iOS, please, also remember to
cd ios
pod install
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT