react-native-animation
A native animation UI component for react-native. (Recently, we will refactor and optimize this.)
Install
npm i react-native-animation --save
iOS
Podfile
add
pod 'react-native-animation', :path => '../node_modules/react-native-animation'
Android
settings.gradle
add
include ':react-native-animation'
project(':react-native-animation').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-animation/android')
Usage
A simple example:(fade in)
<Animation.AnimationView==>other views...</Animation.AnimationView>
*Now support: 'Translate' | 'Rotate' | 'Scale' | 'Alpha'
Props
methods
start()
clear()