Description
Original issue: react-navigation/react-navigation#12697
Current behavior
Hi,
I'm using @react-navigation/native-stack on iOS with these options:
screenOptions={{
headerBackButtonDisplayMode: 'minimal',
headerBackButtonMenuEnabled: false,
}}
The back button shows only the arrow, but if I long-press the back button, the stack menu still appears.
Expected behavior
I expect that setting headerBackButtonMenuEnabled: false should completely disable the long-press back button menu, regardless of the display mode. However, the menu still appears when I long-press the back button on iOS. Am I misunderstanding how this option is supposed to work, or could this be a bug?
Reproduction
ismkerem/RNnavigation
Platform
Environment
Package Version
@react-navigation/native ^7.1.14
@react-navigation/bottom-tabs 7.4.2
@react-navigation/drawer ^7.5.3
@react-navigation/material-top-tabs ^7.3.2
@react-navigation/stack ^7.4.2
@react-navigation/native-stack ^7.3.21
react-native-drawer-layout ^4.1.12
react-native-tab-view ^4.1.2
react-native-screens ^4.13.1
react-native-safe-area-context ^5.5.2
react-native-gesture-handler ^2.27.2
react-native-reanimated ^4.0.0
react-native 0.80.1
expo —
node 23.9.0
npm or yarn 11.2.0
Steps to reproduce
All info is above
Snack or a link to a repository
Here
Screens version
See above
React Native version
See above
Platforms
iOS
JavaScript runtime
None
Workflow
None
Architecture
Fabric (New Architecture)
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes
Description
Original issue: react-navigation/react-navigation#12697
Current behavior
Hi,
I'm using
@react-navigation/native-stackon iOS with these options:screenOptions={{
headerBackButtonDisplayMode: 'minimal',
headerBackButtonMenuEnabled: false,
}}
The back button shows only the arrow, but if I long-press the back button, the stack menu still appears.
Expected behavior
I expect that setting headerBackButtonMenuEnabled: false should completely disable the long-press back button menu, regardless of the display mode. However, the menu still appears when I long-press the back button on iOS. Am I misunderstanding how this option is supposed to work, or could this be a bug?
Reproduction
ismkerem/RNnavigation
Platform
Environment
Package Version
@react-navigation/native ^7.1.14
@react-navigation/bottom-tabs 7.4.2
@react-navigation/drawer ^7.5.3
@react-navigation/material-top-tabs ^7.3.2
@react-navigation/stack ^7.4.2
@react-navigation/native-stack ^7.3.21
react-native-drawer-layout ^4.1.12
react-native-tab-view ^4.1.2
react-native-screens ^4.13.1
react-native-safe-area-context ^5.5.2
react-native-gesture-handler ^2.27.2
react-native-reanimated ^4.0.0
react-native 0.80.1
expo —
node 23.9.0
npm or yarn 11.2.0
Steps to reproduce
All info is above
Snack or a link to a repository
Here
Screens version
See above
React Native version
See above
Platforms
iOS
JavaScript runtime
None
Workflow
None
Architecture
Fabric (New Architecture)
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes