1.1.1 • Published 9 years ago

rn-ph-gestures v1.1.1

Weekly downloads
1
License
MIT
Repository
-
Last release
9 years ago

Physical gestures

Getting started

$ npm install rn-ph-gestures --save

Mostly automatic installation

$ react-native link rn-ph-gestures

Manual installation

iOS

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

Usage

import RNGestures from 'rn-ph-gestures';

//Registering Listener
RNGestures.registerMovementDetection(3, 2000);

//Unregistering Listener
 RNGestures.stopMovementDetection();

//Listening events
DeviceEventEmitter.addListener("MOVING", () => {
    // Do your stuff
});

DeviceEventEmitter.addListener("STATIONARY", () => {
    // Do your stuff
});
1.1.1

9 years ago

1.1.0

9 years ago

1.0.9

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago