Skip to content

Commit

Permalink
Remove deprecated ViewPager (ptomasroos#1039)
Browse files Browse the repository at this point in the history
* remove deprecated ViewPager

* Update index.js

Co-Authored-By: Mustafa Buyukcelebi <[email protected]>
  • Loading branch information
2 people authored and ptomasroos committed Oct 10, 2019
1 parent fea1649 commit b183e19
Show file tree
Hide file tree
Showing 3 changed files with 1,131 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ const {
ScrollView,
Platform,
StyleSheet,
ViewPagerAndroid,
InteractionManager,
} = ReactNative;
const TimerMixin = require('react-timer-mixin');
const ViewPager = require('@react-native-community/viewpager');

const SceneComponent = require('./SceneComponent');
const DefaultTabBar = require('./DefaultTabBar');
const ScrollableTabBar = require('./ScrollableTabBar');

const AnimatedViewPagerAndroid = Platform.OS === 'android' ?
Animated.createAnimatedComponent(ViewPagerAndroid) :
Animated.createAnimatedComponent(ViewPager) :
undefined;

const ScrollableTabView = createReactClass({
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@
},
"homepage": "https://github.com/brentvatne/react-native-scrollable-tab-view#readme",
"dependencies": {
"react-timer-mixin": "^0.13.3",
"@react-native-community/viewpager": "^1.1.7",
"create-react-class": "^15.6.2",
"prop-types": "^15.6.0",
"create-react-class": "^15.6.2"
"react-timer-mixin": "^0.13.3"
},
"devDependencies": {
"babel-eslint": "^6.1.2",
Expand Down
Loading

0 comments on commit b183e19

Please sign in to comment.