aksonov / aksonov/react-native-tabs

Does not work for falsey values of name

Đang mở
#58 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
727
Fork
112
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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]}

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.