Open gaowei1012 opened 4 years ago
使用
<TabBar
ref={e => this.tabs = e}
index={this.state.index}
data={promationTypeList}
onChange={(index, id) => this.onChangeTab(index, id)}
/>
动态显示内容
{this.state.index === this.state.index ? <Text>{this.state.index}</Text>:null}