1.0.1 • Published 1 year ago

@golden_vinyle/rn-scratch-card v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

rn-scratch-card

it's a fork of rn-scratch-card by @avegrv. On this version, you have access complete access of grid data.

Scratch Sample

Check out it on dribble.

Installation

yarn add @golden_vinyle/rn-scratch-card

https://nodei.co/npm/@golden_vinyle/rn-scratch-card.png?downloads=true&downloadRank=true&stars=true

Usage

import { ScratchCard } from 'rn-scratch-card'

// ...
<ScratchCard
  source={require('./scratch_foreground.png')}
  brushWidth={50}
  onScratch={handleScratch}
  style={styles.scratch_card}
/>

Example project setup

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

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT