1.0.0-beta2 • Published 2 years ago

swc-rn-scratch-card v1.0.0-beta2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

swc-rn-scratch-card

React Native Scratch View which temporarily hides content from a user

⚠️ The codebase in beta. API won't change, but the library is still in development.

Scratch Sample

Installation

yarn add swc-rn-scratch-card

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

Usage

import { SwcRnScratchCardView } from 'swc-rn-scratch-card';

// ...
const source = Image.resolveAssetSource(require('./scratch_foreground.png'));

<SwcRnScratchCardView
        image={source}
        onScratch={handleScratch}
        style={styles.box}
      />

Contributing

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

License

MIT