1.1.1 • Published 8 years ago

rn-ph-gestures v1.1.1

Weekly downloads
1
License
MIT
Repository
-
Last release
8 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

8 years ago

1.1.0

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago