From bdc5c54ada5482be8caee70f1df8042edb9df44f Mon Sep 17 00:00:00 2001 From: Jimmy Sinn Date: Tue, 19 Nov 2019 14:23:23 +0800 Subject: [PATCH] Remove an unused line that blocks running on Android under react-native 0.61.4 --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 82e53c54..87743a0b 100644 --- a/index.js +++ b/index.js @@ -13,7 +13,6 @@ const { InteractionManager, } = ReactNative; -const ViewPagerAndroid = require('@react-native-community/viewpager'); const TimerMixin = require('react-timer-mixin'); const ViewPager = require('@react-native-community/viewpager'); @@ -339,7 +338,7 @@ const ScrollableTabView = createReactClass({ if (!width || width <= 0 || Math.round(width) === Math.round(this.state.containerWidth)) { return; } - + if (Platform.OS === 'ios') { const containerWidthAnimatedValue = new Animated.Value(width); // Need to call __makeNative manually to avoid a native animated bug. See