From e4091c8642bb7453c099751f42333481a2607ad2 Mon Sep 17 00:00:00 2001 From: Bingjian Date: Sat, 10 Dec 2022 13:42:51 +0800 Subject: [PATCH 1/4] chore: use react-native-pager-view --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cbebd74d..d0e8bc08 100644 --- a/package.json +++ b/package.json @@ -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": "^5.4.9", "create-react-class": "^15.6.2", "deprecated-react-native-prop-types": "^2.3.0", "prop-types": "^15.6.0", From 57faa57db4e876fe5063fc4a306b2aa762989003 Mon Sep 17 00:00:00 2001 From: Bingjian Date: Sat, 10 Dec 2022 14:46:03 +0800 Subject: [PATCH 2/4] chore: use react-native-pager-view --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index dc9d4f4e..8bc0efa7 100644 --- a/index.js +++ b/index.js @@ -13,9 +13,9 @@ const { InteractionManager, } = ReactNative; -const ViewPagerAndroid = require('@react-native-community/viewpager'); + const TimerMixin = require('react-timer-mixin'); -const ViewPager = require('@react-native-community/viewpager'); +const ViewPager = require('react-native-pager-view'); const SceneComponent = require('./SceneComponent'); const DefaultTabBar = require('./DefaultTabBar'); From 874d1f5330f588f52c9c560d41693d2e684ba5b8 Mon Sep 17 00:00:00 2001 From: Bingjian Date: Sat, 10 Dec 2022 14:54:54 +0800 Subject: [PATCH 3/4] chore: update yarn.lock --- yarn.lock | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/yarn.lock b/yarn.lock index 901e52ce..896f6e48 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,11 +2,6 @@ # yarn lockfile v1 -"@react-native-community/viewpager@3.3.0": - version "3.3.0" - resolved "https://registry.yarnpkg.com/@react-native-community/viewpager/-/viewpager-3.3.0.tgz#e613747a43a31a6f3278f817ba96fdaaa7941f23" - integrity sha512-tyzh79l4t/hxiyS9QD3LRmWMs8KVkZzjrkQ8U8+8To1wmvVCBtp8BenvNsDLTBO7CpO/YmiThpmIdEZMr1WuVw== - "@react-native/normalize-color@*": version "2.0.0" resolved "https://registry.yarnpkg.com/@react-native/normalize-color/-/normalize-color-2.0.0.tgz#da955909432474a9a0fe1cbffc66576a0447f567" @@ -892,6 +887,11 @@ react-is@^16.8.1: resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.9.0.tgz#21ca9561399aad0ff1a7701c01683e8ca981edcb" integrity sha512-tJBzzzIgnnRfEm046qRcURvwQnZVXmuCbscxUO5RWrGTXpon2d4c8mI0D8WE6ydVIm29JiLB6+RslkIvym9Rjw== +react-native-pager-view@^5.4.9: + version "5.4.25" + resolved "https://registry.yarnpkg.com/react-native-pager-view/-/react-native-pager-view-5.4.25.tgz#cd639d5387a7f3d5581b55a33c5faa1cbc200f97" + integrity sha512-3drrYwaLat2fYszymZe3nHMPASJ4aJMaxiejfA1V5SK3OygYmdtmV2u5prX7TnjueJzGSyyaCYEr2JlrRt4YPg== + react-timer-mixin@^0.13.3: version "0.13.4" resolved "https://registry.yarnpkg.com/react-timer-mixin/-/react-timer-mixin-0.13.4.tgz#75a00c3c94c13abe29b43d63b4c65a88fc8264d3" From 1c9ba59f402b4c7f14727922ae5155a811aff259 Mon Sep 17 00:00:00 2001 From: Bingjian Date: Sat, 10 Dec 2022 16:57:18 +0800 Subject: [PATCH 4/4] feat: require react-native-pager-view --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 8bc0efa7..60dcec45 100644 --- a/index.js +++ b/index.js @@ -15,7 +15,7 @@ const { const TimerMixin = require('react-timer-mixin'); -const ViewPager = require('react-native-pager-view'); +const ViewPager = require('react-native-pager-view').default; const SceneComponent = require('./SceneComponent'); const DefaultTabBar = require('./DefaultTabBar');