Open wangvili opened 7 months ago
Tabs下都是FlatList页面,android下点击 使用默认的tabs包裹,没有自定义randerTab
changetabs = (value, index) => { console.log('changetabs', index, value); }
tabs={tabData} initialPage={0} onTabClick={this.onTabClick} onChange={this.changetabs} //android点击tab怎么不触发啊 tabBarPosition="top" tabBarUnderlineStyle={{backgroundColor: '#FF8000'}}> ... </Tabs>
点击tab时,changetabs的log不会打印
iOS, Android
npx react-native info
System: OS: macOS 13.5.2 CPU: (10) arm64 Apple M2 Pro Memory: 86.80 MB / 16.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 20.0.0 path: /var/folders/kb/p5p48sk13csbptrctf07nlt00000gn/T/yarn--1700794252506-0.4000835605250852/node Yarn: version: 1.22.19 path: /var/folders/kb/p5p48sk13csbptrctf07nlt00000gn/T/yarn--1700794252506-0.4000835605250852/yarn npm: version: 9.8.1 path: /opt/homebrew/bin/npm Watchman: version: HEAD-fcdc2f1 path: /opt/homebrew/bin/watchman Managers: CocoaPods: version: 1.13.0 path: /usr/local/bin/pod SDKs: iOS SDK: Platforms:
无
💬 前提强调
🙋 描述详情/重现步骤
Tabs下都是FlatList页面,android下点击 使用默认的tabs包裹,没有自定义randerTab
changetabs = (value, index) => { console.log('changetabs', index, value); }
💻 运行环境
iOS, Android
⚫️
npx react-native info
输出信息System: OS: macOS 13.5.2 CPU: (10) arm64 Apple M2 Pro Memory: 86.80 MB / 16.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 20.0.0 path: /var/folders/kb/p5p48sk13csbptrctf07nlt00000gn/T/yarn--1700794252506-0.4000835605250852/node Yarn: version: 1.22.19 path: /var/folders/kb/p5p48sk13csbptrctf07nlt00000gn/T/yarn--1700794252506-0.4000835605250852/yarn npm: version: 9.8.1 path: /opt/homebrew/bin/npm Watchman: version: HEAD-fcdc2f1 path: /opt/homebrew/bin/watchman Managers: CocoaPods: version: 1.13.0 path: /usr/local/bin/pod SDKs: iOS SDK: Platforms:
补充说明
无