0.1.0 • Published 3 years ago

@nandorojo/redrip v0.1.0

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

@nandorojo/redrip

An elegant animation library for React Native (+ Web), powered by Reanimated 2.

Expo support included.

Installation

# coming soon
npm install @nandorojo/redrip

# or
yarn add @nandorojo/redrip

You also need to install Reanimated 2.x. This has been tested with 2.0.0-rc.0. Please refer to their docs for installation.

Usage

See this tweet for now: https://twitter.com/FernandoTheRojo/status/1348093995277299712

import * as ReDrip from '@nandorojo/redrip';

<View
  from={{
    opacity: 0,
  }}
  animate={{
    opacity: 1,
  }}
  onDidAnimate={(key, finished) => {
    console.log('[complete]', key, finished); // [complete] scale, true
  }}
/>;

Contributing

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

License

MIT