mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-19 11:21:41 +03:00
changed width calculation in tabBar component causing wrong underline width calculation
This commit is contained in:
parent
79a60c555e
commit
65a84c1938
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user