diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 00000000..4e9cff6b --- /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": "3.3.0", + "resolved": "https://registry.npmjs.org/@react-native-community/viewpager/-/viewpager-3.3.0.tgz", + "integrity": "sha512-tyzh79l4t/hxiyS9QD3LRmWMs8KVkZzjrkQ8U8+8To1wmvVCBtp8BenvNsDLTBO7CpO/YmiThpmIdEZMr1WuVw==" + } + } +} diff --git a/package.json b/package.json index 4119d541..ec095204 100644 --- a/package.json +++ b/package.json @@ -32,5 +32,8 @@ "bugs": { "url": "https://github.com/zbtang/React-Native-ViewPager/issues" }, - "homepage": "https://github.com/zbtang/React-Native-ViewPager#readme" + "homepage": "https://github.com/zbtang/React-Native-ViewPager#readme", + "dependencies": { + "@react-native-community/viewpager": "^3.3.0" + } } diff --git a/viewpager/ViewPager.js b/viewpager/ViewPager.js index 732db756..da975e1e 100644 --- a/viewpager/ViewPager.js +++ b/viewpager/ViewPager.js @@ -4,9 +4,9 @@ 'use strict' -import { PanResponder, Platform, ScrollView, StyleSheet, View, ViewPagerAndroid } from 'react-native' +import { PanResponder, Platform, ScrollView, StyleSheet, View } from 'react-native' import React, { Component } from 'react' - +import ViewPagerAndroid from "@react-native-community/viewpager"; const SCROLLVIEW_REF = 'scrollView' const VIEWPAGER_REF = 'viewPager'