0.1.6 • Published 7 years ago
rn-shake-test v0.1.6
This is a beta release
Requirements:
react-native >= 0.55for iOSreact-native >= 0.55for Android
With this SDK, Shake description...
Documentation
Documentition url
react-native-shake
Getting started
$ npm install react-native-shake --save
Mostly automatic installation
$ react-native link react-native-shake
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-shakeand addRNShake.xcodeproj - In XCode, in the project navigator, select your project. Add
libRNShake.ato your project'sBuild Phases➜Link Binary With Libraries - Run your project (
Cmd+R)<
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNShakePackage;to the imports at the top of the file - Add
new RNShakePackage()to the list returned by thegetPackages()method
- Append the following lines to
android/settings.gradle:include ':react-native-shake' project(':react-native-shake').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-shake/android') - Insert the following lines inside the dependencies block in
android/app/build.gradle:compile project(':react-native-shake')
Windows
- In Visual Studio add the
RNShake.slninnode_modules/react-native-shake/windows/RNShake.slnfolder to their solution, reference from their app. - Open up your
MainPage.csapp
- Add
using Shake.RNShake;to the usings at the top of the file - Add
new RNShakePackage()to theList<IReactPackage>returned by thePackagesmethod
Usage
import RNShake from 'react-native-shake';
// TODO: What to do with the module?
RNShake;