Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Native Base 和 TabNavigator 来显示自定义选项卡。
如何更改 Button 元素的“活动”属性以反映自定义活动选项卡?
通过添加解决:
active={props.navigation.state.index === 0}
这是记录的值:
此外,您可以转到 state.routes 以获取屏幕列表。