Skip to content

Commit 62d1afa

Browse files
committed
fix possible glitch issue in TabBarItem when setting layout width
1 parent cc7fcff commit 62d1afa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/incubator/TabController/TabBarItem.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ export default class TabBarItem extends PureComponent {
144144
};
145145

146146
if (width || itemWidth) {
147+
style.flex = undefined;
147148
style.width = width || itemWidth;
148149
style.paddingHorizontal = undefined;
149150
}

0 commit comments

Comments
 (0)