react native BottomTabNavigator 点击打开新页面 Posted on 2019-10-10 | Post modified: 2021-07-20 | In Technology , ReactNative Words count in article: 80 | Reading time ≈ 1 最近用rn 做项目, 需要一个需求, 底部tab 中间的tab 不是切换页面, 是跳转到新页面. 查了下 api文档 1234567891011screen: CompanyJobManager, navigationOptions: { tabBarLabel: " ", tabBarIcon: ({tintColor, focused}) => ( <Image source={require('./images/add.png')} resize="contains" style={{width: 40, height: 40, marginTop: 10}}/> ), tabBarOnPress: ({navigation, defaultHandle}) => { navigation.push('PostJob', {isUpdate: false}) } }, Adhere to original technology sharing, your support will encourage me to continue to create! Donate WeChat Pay Alipay Post author: TIMDING Post link: https://lovexinforever.github.io/2019/10/10/react-native-BottomTabNavigator-点击打开新页面/ Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 3.0 unless stating additionally.