-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
What happened?
If the statusBar visibility is false:
Navigation.setDefaultOptions({
statusBar: {
visible: false
},
})
a subsequent call to Navigation.mergeOptions() will increase the application height:
Navigation.mergeOptions(props.componentId, { topBar: { title: { text: Date.now() + "" } } });
What was the expected behaviour?
The application height should not be cutoff on the bottom.
Was it tested on latest react-native-navigation?
- I have tested this issue on the latest react-native-navigation release and it still reproduces.
Help us reproduce this issue!
Repo: https://github.com/ldstein/ReactNativeNavigationBugFix
- git clone https://github.com/ldstein/ReactNativeNavigationBugFix.git
- cd ReactNativeNavigationBugFix
- npm ci
- npm run android
In what environment did this happen?
React Native Navigation version: 7.37.1
React Native version: 0.72.6
Has Fabric (React Native's new rendering system) enabled: No
Node version: 18.10.0
Device model: Pixel 3 (physical device), Pixel 7 Pro (simulator)
Android version: Android 11 (Pixel 3), Android 13 (Pixel 7 Pro)
