From b6b1b299ac4983861a01ec950275f696d91257ed Mon Sep 17 00:00:00 2001 From: Hubert Dworczynski Date: Fri, 27 Sep 2019 15:55:55 +0200 Subject: [PATCH] add @react-native-community/viewpager as dependency --- package-lock.json | 13 +++++++++++++ package.json | 3 +++ viewpager/ViewPager.js | 3 ++- 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 package-lock.json diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 00000000..8f9262d9 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,13 @@ +{ + "name": "rn-viewpager", + "version": "1.2.9", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@react-native-community/viewpager": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/@react-native-community/viewpager/-/viewpager-1.1.7.tgz", + "integrity": "sha512-k9v2KJtAprNPq7IZmedD2VLMePvPW+ohX3uDnkpoKritBji+/RtRmTKrdtPi3Uvp0toq/KtPttAds1dr7AZNpw==" + } + } +} diff --git a/package.json b/package.json index 4119d541..5be76da4 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,9 @@ "type": "git", "url": "git+https://github.com/zbtang/React-Native-ViewPager.git" }, + "dependencies": { + "@react-native-community/viewpager": "^1.1.7" + }, "keywords": [ "react-native-component", "react-component", diff --git a/viewpager/ViewPager.js b/viewpager/ViewPager.js index 732db756..f86d0cd5 100644 --- a/viewpager/ViewPager.js +++ b/viewpager/ViewPager.js @@ -4,7 +4,8 @@ 'use strict' -import { PanResponder, Platform, ScrollView, StyleSheet, View, ViewPagerAndroid } from 'react-native' +import { PanResponder, Platform, ScrollView, StyleSheet, View } from 'react-native' +import ViewPagerAndroid from "@react-native-community/viewpager"; import React, { Component } from 'react' const SCROLLVIEW_REF = 'scrollView'