diff --git a/src/components/tabBar/view/tabBarView.js b/src/components/tabBar/view/tabBarView.js index 24c90aaf7..a374660d7 100644 --- a/src/components/tabBar/view/tabBarView.js +++ b/src/components/tabBar/view/tabBarView.js @@ -66,7 +66,7 @@ class TabBar extends PureComponent { } = this.props; const { activeColor } = this.state; - const containerWidth = getWindowDimensions().width; + const containerWidth = Dimensions.get('window').width; const numberOfTabs = tabs.length; const underlineWidth = tabUnderlineDefaultWidth || containerWidth / (numberOfTabs * 2); const scale = tabUnderlineScaleX || 2;