React native 反应导航覆盖backbutton行为,但不';不要改变看法
我想覆盖headerLeft(后退按钮)中的操作行为,但我不想更改视图,请使用react导航的默认视图 如何覆盖并向默认headerLeft backButton添加操作React native 反应导航覆盖backbutton行为,但不';不要改变看法,react-native,react-navigation,React Native,React Navigation,我想覆盖headerLeft(后退按钮)中的操作行为,但我不想更改视图,请使用react导航的默认视图 如何覆盖并向默认headerLeft backButton添加操作 感谢您取消默认的后退按钮: static navigationOptions =({navigation}) => { return { headerLeft: null, } } 你也可以用同样的方法覆盖你的后退按钮给这个PR加一个+1,现在,你必须传递自己的headerLeft
感谢您取消默认的后退按钮:
static navigationOptions =({navigation}) => {
return {
headerLeft: null,
}
}
你也可以用同样的方法覆盖你的后退按钮给这个PR加一个+1,现在,你必须传递自己的headerLeft
组件,然后从那里渲染BackButton。