0.0.1 • Published 7 years ago
react-native-motion-event v0.0.1
react-native-motion-event
Getting started
$ npm install react-native-motion-event --save
Mostly automatic installation
$ react-native link react-native-motion-event
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.shukerullah.motionevent.RNMotionEventPackage;
to the imports at the top of the file - Add
new RNMotionEventPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-motion-event' project(':react-native-motion-event').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-motion-event/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-motion-event')
Usage
import RNMotionEvent from 'react-native-motion-event';
// TODO: What to do with the module?
RNMotionEvent;
0.0.1
7 years ago