react-native-facebook-keyframes
A React Native wrapper for the Facebook Keyframes library.
Just for iOS for now, Android is still WIP.
Getting started
$ npm install react-native-facebook-keyframes --save
Mostly automatic installation
$ react-native link react-native-facebook-keyframes
(*) you must follow the Keyframes dependency configuration section below!
Manual installation
iOS
- 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 add RNFacebookKeyframes.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNFacebookKeyframes.a
to your project's Build Phases
➜ Link Binary With Libraries
- Run your project (
Cmd+R
)<
Keyframes dependency configuration
- 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 add keyframes.xcodeproj
- In XCode, in the project navigator, select your project. Add
keyframes.a
to your project's Build Phases
➜ Link Binary With Libraries
- Select the
keyframes
project from the dropdown besides the Stop
button in the top bar - Build the
keyframes
project (Cmd+B
). - Select
[your project's name]
project from the dropdown besides the Stop
button in the top bar - Run your project (
Cmd+R
)<
Usage
import KeyframesView from 'react-native-facebook-keyframes'
<KeyframesView
style={{ width: 100, height: 100 }}
seek={1.0}
src={require('./keyframes-logo.json')}
/>
Running the sample
- Go to the
demo/KeyframesDemo
folder
- run
npm install
- run
react-native run-ios
If it doesn't work, open and run the project using xCode.
TODOS
MIT Licensed