137 lines
21 KiB
JSON
137 lines
21 KiB
JSON
|
{
|
|||
|
"_args": [
|
|||
|
[
|
|||
|
{
|
|||
|
"raw": "react-native-gesture-handler@1.0.0-alpha.39",
|
|||
|
"scope": null,
|
|||
|
"escapedName": "react-native-gesture-handler",
|
|||
|
"name": "react-native-gesture-handler",
|
|||
|
"rawSpec": "1.0.0-alpha.39",
|
|||
|
"spec": "1.0.0-alpha.39",
|
|||
|
"type": "version"
|
|||
|
},
|
|||
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/expo"
|
|||
|
]
|
|||
|
],
|
|||
|
"_from": "react-native-gesture-handler@1.0.0-alpha.39",
|
|||
|
"_id": "react-native-gesture-handler@1.0.0-alpha.39",
|
|||
|
"_inCache": true,
|
|||
|
"_location": "/react-native-gesture-handler",
|
|||
|
"_nodeVersion": "8.4.0",
|
|||
|
"_npmOperationalInternal": {
|
|||
|
"host": "s3://npm-registry-packages",
|
|||
|
"tmp": "tmp/react-native-gesture-handler-1.0.0-alpha.39.tgz_1515589106311_0.7070822108071297"
|
|||
|
},
|
|||
|
"_npmUser": {
|
|||
|
"name": "kmag",
|
|||
|
"email": "krzys.magiera@gmail.com"
|
|||
|
},
|
|||
|
"_npmVersion": "5.4.2",
|
|||
|
"_phantomChildren": {},
|
|||
|
"_requested": {
|
|||
|
"raw": "react-native-gesture-handler@1.0.0-alpha.39",
|
|||
|
"scope": null,
|
|||
|
"escapedName": "react-native-gesture-handler",
|
|||
|
"name": "react-native-gesture-handler",
|
|||
|
"rawSpec": "1.0.0-alpha.39",
|
|||
|
"spec": "1.0.0-alpha.39",
|
|||
|
"type": "version"
|
|||
|
},
|
|||
|
"_requiredBy": [
|
|||
|
"/expo"
|
|||
|
],
|
|||
|
"_resolved": "https://registry.npmjs.org/react-native-gesture-handler/-/react-native-gesture-handler-1.0.0-alpha.39.tgz",
|
|||
|
"_shasum": "e87851d5efc49d2d91ebf76ad59b7b5d1fd356f5",
|
|||
|
"_shrinkwrap": null,
|
|||
|
"_spec": "react-native-gesture-handler@1.0.0-alpha.39",
|
|||
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/expo",
|
|||
|
"author": {
|
|||
|
"name": "Krzysztof Magiera",
|
|||
|
"email": "krzys.magiera@gmail.com"
|
|||
|
},
|
|||
|
"bugs": {
|
|||
|
"url": "https://github.com/kmagiera/react-native-gesture-handler/issues"
|
|||
|
},
|
|||
|
"dependencies": {
|
|||
|
"hoist-non-react-statics": "^2.3.1",
|
|||
|
"invariant": "^2.2.2",
|
|||
|
"prop-types": "^15.5.10"
|
|||
|
},
|
|||
|
"description": "Experimental implementation of a new declarative API for gesture handling in react-native",
|
|||
|
"devDependencies": {
|
|||
|
"@types/react": "^16.0.31",
|
|||
|
"@types/react-native": "^0.51.3",
|
|||
|
"babel-jest": "16.0.0",
|
|||
|
"babel-preset-react-native": "1.9.0",
|
|||
|
"flow-bin": "^0.56.0",
|
|||
|
"husky": "^0.14.3",
|
|||
|
"jest": "16.0.2",
|
|||
|
"jest-react-native": "16.0.0",
|
|||
|
"lint-staged": "^4.0.3",
|
|||
|
"prettier": "^1.7.0",
|
|||
|
"react": "^16.0.0",
|
|||
|
"react-native": "^0.50.1",
|
|||
|
"react-test-renderer": "15.3.2"
|
|||
|
},
|
|||
|
"directories": {},
|
|||
|
"dist": {
|
|||
|
"integrity": "sha512-nNdafB04a1b+zafEwMvzor5KJ3xFylJQHtPljXZKdTDeYbGSIcfPpfx96rDpxDr4fkO/o0K51InZHZ6PUtG5EQ==",
|
|||
|
"shasum": "e87851d5efc49d2d91ebf76ad59b7b5d1fd356f5",
|
|||
|
"tarball": "https://registry.npmjs.org/react-native-gesture-handler/-/react-native-gesture-handler-1.0.0-alpha.39.tgz"
|
|||
|
},
|
|||
|
"files": [
|
|||
|
"android/build.gradle",
|
|||
|
"android/src/main/AndroidManifest.xml",
|
|||
|
"android/src/main/java/",
|
|||
|
"android/lib/build.gradle",
|
|||
|
"android/lib/src/main/java/",
|
|||
|
"ios/",
|
|||
|
"README.md",
|
|||
|
"NATIVE_NAVIGATORS.md",
|
|||
|
"GestureHandler.js",
|
|||
|
"Swipeable.js",
|
|||
|
"DrawerLayout.js",
|
|||
|
"gestureHandlerRootHOC.android.js",
|
|||
|
"gestureHandlerRootHOC.ios.js",
|
|||
|
"react-native-gesture-handler.d.ts"
|
|||
|
],
|
|||
|
"gitHead": "a3f1af23130a522817ea6aaf8bc8bfcdc5a16227",
|
|||
|
"homepage": "https://github.com/kmagiera/react-native-gesture-handler#readme",
|
|||
|
"jest": {
|
|||
|
"preset": "jest-react-native"
|
|||
|
},
|
|||
|
"license": "MIT",
|
|||
|
"lint-staged": {
|
|||
|
"*.js": [
|
|||
|
"prettier --write --print-width 80 --tab-width 2 --single-quote --jsx-bracket-same-line=true --trailing-comma=es5",
|
|||
|
"git add"
|
|||
|
]
|
|||
|
},
|
|||
|
"main": "GestureHandler.js",
|
|||
|
"maintainers": [
|
|||
|
{
|
|||
|
"name": "kmag",
|
|||
|
"email": "krzys.magiera@gmail.com"
|
|||
|
}
|
|||
|
],
|
|||
|
"name": "react-native-gesture-handler",
|
|||
|
"optionalDependencies": {},
|
|||
|
"peerDependencies": {
|
|||
|
"react": "> 15.0.0",
|
|||
|
"react-native": ">= 0.50.0"
|
|||
|
},
|
|||
|
"readme": "# react-native-gesture-handler\n\nNative way of handling touch & gestures for React Native apps!\n\nThis library provides an API that exposes mobile platform specific native capabilities of touch & gesture handling and recognition. It allows for defining complex gesture handling and recognition logic that runs 100% in native thread and is therefore deterministic.\n\n### What does it give me:\n - It provides a way to access native touch handling logic for recognizing pinch, rotation, pan and other\n - You can define relations between gesture handlers, e.g. when you have pan handler in scrollview you can make scrollview to wait until it knows pan won't recognize\n - You can use touchables that run in native and follow platform default behaviour in case when they are embbede in scrollable component (the interaction is slightly delayed to prevent button from highlighting when you fling)\n - You can implement smooth gesture interactions that thanks to \"Animated Native Driver\" can run even when JS thread is overloaded\n\n## Installation\n\n### Supported configurations\n\nBefore instaling please check the following table to find which library version is compatible with React Native version you are using:\n\n | React Native version | React Native Gesture Handler version | Notes |\n | --- | --- | --- |\n | v0.50+ | **latest** | |\n | v0.47 - v0.49 | 1.0.0-alpha.29 | Breaking changes explained and fixed in [#44](https://github.com/kmagiera/react-native-gesture-handler/pull/44) |\n | pre v0.47 | **Not supported** |\n\n\n\nI. First install the library from npm repository using `yarn`:\n```bash\n yarn add react-native-gesture-handler\n```\n\nor using `npm` if you prefer:\n```bash\n npm install --save react-native-gesture-handler\n```\n\nII. Run:\n```bash\n react-native link react-native-gesture-handler\n```\n\nIII (**Android**). Follow the steps below:\n\n**IMPORTANT:** If you use one of the *native navigation libraries* (e.g. [wix/react-native-navigation](https://github.com/wix/react-native-navigation)), you need to follow [this separate guide](NATIVE_NAVIGATORS.md) to get gesture handler library set up on Android. Ignore the rest of this step – it only applies to RN apps that uses standard Android project layout.\n\nUpdate your main activity (or wherever you create an instance of `ReactActivityDelegate`), so that it overrides the method responsible for creating a `ReactRootView` instance. Then use a root view wrapper provided by this library:\n```java\n// Don't forget imports\nimport com.facebook.react.ReactActivityDelegate;\nimport com.facebook.react.ReactRootView;\nimport com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView;\n\npublic class MainActivity extends ReactActivity {\n\n // Add the following method to your main activity class\n @Override\n protected ReactActivityDelegate createReactActivityDelegate() {\n return new ReactActivityDelegate(this, getMainComponentName()) {\n @Override\n protected ReactRootView createRootView() {\n return new RNGestureHandlerEnabledRootView(MainActivity.this);\n }\n };\n }\n}\n```\n\nIII (**iOS**). There is no additional config required to be done on iOS except from what follows in the next steps.\n\nIV. You're all set, just run your app with `react-native run-android` or `react-native run-ios`\n\n## Examples\n\nIf you don't feel like trying it on a real app, but just want to play with the API you can run the example project. Clone the repo, go to the `Example/` folder and run:\n```bash\n yarn install\n```\n\nThen run `react-native run-android` or `react-native run-ios` depending on which platform you want to run the example app on.\n\nYou will need to have an Android or iOS device or emulator connected as well as `react-native-cli` package installed globally.\n\n## API\n\nHere are a gesture recognizers currently available in the package:\n - `TapGestureHandler`\n - `LongPressGestureHandler`\n - `PanGestureHandler`\n - `PinchGestureHandler`\n - `RotationGestureHandler`\n\nWhenever you use a native component that should handle
|
|||
|
"readmeFilename": "README.md",
|
|||
|
"repository": {
|
|||
|
"type": "git",
|
|||
|
"url": "git+https://github.com/kmagiera/react-native-gesture-handler.git"
|
|||
|
},
|
|||
|
"scripts": {
|
|||
|
"precommit": "lint-staged",
|
|||
|
"start": "node node_modules/react-native/local-cli/cli.js start",
|
|||
|
"test": "jest"
|
|||
|
},
|
|||
|
"types": "react-native-gesture-handler.d.ts",
|
|||
|
"version": "1.0.0-alpha.39"
|
|||
|
}
|