diff --git a/src/DefaultTabBar.native.tsx b/src/DefaultTabBar.native.tsx index 405cdd1..d436b21 100644 --- a/src/DefaultTabBar.native.tsx +++ b/src/DefaultTabBar.native.tsx @@ -113,7 +113,7 @@ export class DefaultTabBar extends React.PureComponent { updateTabUnderline(position: number, pageOffset: number, tabCount: number) { const { dynamicTabUnderlineWidth } = this.props; - if (0 <= position && position <= tabCount - 1) { + if (0 <= position && position < tabCount - 1) { if (dynamicTabUnderlineWidth) { const nowLeft = this._tabsMeasurements[position].left; const nowRight = this._tabsMeasurements[position].right;