Skip to content

Commit e4b582b

Browse files
committed
Remove addItems from screen with fewItems
1 parent fe7b396 commit e4b582b

File tree

1 file changed

+1
-1
lines changed
  • demo/src/screens/componentScreens/TabControllerScreen

1 file changed

+1
-1
lines changed

demo/src/screens/componentScreens/TabControllerScreen/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class TabControllerScreen extends Component<{}, State> {
4343

4444
const addItem: TabControllerItemProps = {icon: Assets.icons.demo.add, key: 'add', ignore: true, width: 60, onPress: this.onAddItem};
4545

46-
return [...items, addItem];
46+
return fewItems ? items : [...items, addItem];
4747
};
4848

4949
componentDidMount() {

0 commit comments

Comments
 (0)