From e0077ea4adb8e543061709a03fd9a1a28cf6dbf9 Mon Sep 17 00:00:00 2001 From: BoBeenLee Date: Sun, 29 Jul 2018 15:53:37 +0900 Subject: [PATCH] fix: fixed dynamicTabUnderlineWidth left undefined error --- src/DefaultTabBar.native.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;