标签: react-native react-navigation
我知道可以覆盖传递onPress道具的headerLeft,但是如何在按下默认的后退按钮时(仅在某些屏幕中)拦截而不需要定义要分配给headerLeft的新组件?
答案 0 :(得分:0)
尝试使用react native提供的backhandler
backhandler
详细了解react native web