0.1.6 • Published 7 years ago

rn-shake-test v0.1.6

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
7 years ago

This is a beta release

Requirements:

  • react-native >= 0.55 for iOS
  • react-native >= 0.55 for 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

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-shake and add RNShake.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNShake.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Android

  1. 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 the getPackages() method
  1. 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')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-shake')

Windows

Read it! :D

  1. In Visual Studio add the RNShake.sln in node_modules/react-native-shake/windows/RNShake.sln folder to their solution, reference from their app.
  2. Open up your MainPage.cs app
  • Add using Shake.RNShake; to the usings at the top of the file
  • Add new RNShakePackage() to the List<IReactPackage> returned by the Packages method

Usage

import RNShake from 'react-native-shake';

// TODO: What to do with the module?
RNShake;
0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago