From 4dae4383da2d9ad8964da97e1c54f6800d97a47d Mon Sep 17 00:00:00 2001 From: Blake Grotewold Date: Mon, 17 Apr 2023 01:44:05 -0500 Subject: [PATCH] merge #1150 --- index.js | 5 ++--- package.json | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index de3d294c..c239f9ae 100644 --- a/index.js +++ b/index.js @@ -13,16 +13,15 @@ const { InteractionManager, } = ReactNative; -const ViewPagerAndroid = require('@react-native-community/viewpager'); const TimerMixin = require('react-timer-mixin'); -const ViewPager = require('@react-native-community/viewpager'); +import PagerView from 'react-native-pager-view'; const SceneComponent = require('./SceneComponent'); const DefaultTabBar = require('./DefaultTabBar'); const ScrollableTabBar = require('./ScrollableTabBar'); const AnimatedViewPagerAndroid = Platform.OS === 'android' ? - Animated.createAnimatedComponent(ViewPager) : + Animated.createAnimatedComponent(PagerView) : undefined; const ScrollableTabView = createReactClass({ diff --git a/package.json b/package.json index ef9b36af..6d90b5da 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "", "main": "index.js", "scripts": { - "lint": "eslint -c .eslintrc . --ignore-path .gitignore", + "lint": "eslint .", "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/brentvatne/react-native-scrollable-tab-view#readme", "dependencies": { - "@react-native-community/viewpager": "3.3.0", + "react-native-pager-view": "^4.2.4", "create-react-class": "^15.6.2", "deprecated-react-native-prop-types": "^2.3.0", "prop-types": "^15.6.0",