rn-scratch-card
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

rn-scratch-card

React Native Scratch Card which temporarily hides content from a user

Scratch Sample

Check out it on dribble.

Installation

yarn add rn-scratch-card

https://nodei.co/npm/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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.3
    21
    • latest

Version History

Package Sidebar

Install

npm i rn-scratch-card

Weekly Downloads

2,223

Version

1.2.3

License

MIT

Unpacked Size

58.4 kB

Total Files

39

Last publish

Collaborators

  • avegrv