aksonov / aksonov/react-native-tabs

Does not work for falsey values of name

Open
#58 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
727
Forks
112
PR merge metrics
No merged PRs in 30d

Description

Since the selected value is calculated using `(el.props.name || el.key)` falsey values of `el.props.name` cause the current tab to not be identified properly e.g.

```jsx

{ this.switchTab(el.props.name) }}
iconStyle={styles.tab}
selectedIconStyle={styles.selectedTab}
selectedStyle={styles.selectedTabText}
>
Players
Log

{this.props.children[this.state.currentTab]}

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.