This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

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

1.0.0-beta2 • Public • Published

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

Package Sidebar

Install

npm i swc-rn-scratch-card

Weekly Downloads

2

Version

1.0.0-beta2

License

MIT

Unpacked Size

63.3 kB

Total Files

33

Last publish

Collaborators

  • avegrv