A React Native wrapper for the Facebook Keyframes library.
Just for iOS for now, Android is still WIP.
$ npm install react-native-facebook-keyframes --save
$ react-native link react-native-facebook-keyframes
(*) you must follow the Keyframes dependency configuration section below!
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-facebook-keyframes
and addRNFacebookKeyframes.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNFacebookKeyframes.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-facebook-keyframes/deps/Keyframes/ios/keyframes/
and addkeyframes.xcodeproj
- In XCode, in the project navigator, select your project. Add
keyframes.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Select the
keyframes
project from the dropdown besides theStop
button in the top bar - Build the
keyframes
project (Cmd+B
). - Select
[your project's name]
project from the dropdown besides theStop
button in the top bar - Run your project (
Cmd+R
)<
import KeyframesView from 'react-native-facebook-keyframes'
<KeyframesView
style={{ width: 100, height: 100 }} // View styles
seek={1.0} // Seek to a given progress in range [0, 1]
src={require('./keyframes-logo.json')} // Animation file
/>
- Go to the
demo/KeyframesDemo
folder- run
npm install
- run
react-native run-ios
- run
If it doesn't work, open and run the project using xCode.
- Add support for Android
MIT Licensed