I am trying to enter immersive mode when app starts but the screen won't redraw over the part where the navigation bar dissapeared
How are you trying to enter immersive mode?
i am using this package https://www.npmjs.com/package/react-native-immersive
Are you using drawBehind: true property on the topBar when you enter immersive mode?
yes it's set to true also the orientation it is set to landscape
I'm actually experimenting with this now in windowInsets branch.
It includes a new options to modify the navigationBar
navigationBar: {
drawBehind: true | false,
backgroundColor: String
}
The downside of this branch is that it in order to handle drawing under the status bar and the navigation bar - I had to handle all insets myself rendering android:windowSoftInputMode="adjustResize" useless. This means the system doesn't handle insets for you when the keyboard opens for example and instead RNN handles all insets.
I'm a bit hesitant to introduce this change as I'm not entirely sure what effects it will have.
topBar: {
visible: false,
height: 0,
drawBehind: false
},
statusBar: {
drawBehind: true,
visible: true,
style: 'dark',
backgroundColor: 'transparent'
}
it works!
I'm actually experimenting with this now in windowInsets branch.
It includes a new options to modify the
navigationBarnavigationBar: { drawBehind: true | false, backgroundColor: String }The downside of this branch is that it in order to handle drawing under the status bar and the navigation bar - I had to handle all insets myself rendering
android:windowSoftInputMode="adjustResize"useless. This means the system doesn't handle insets for you when the keyboard opens for example and instead RNN handles all insets.
I'm a bit hesitant to introduce this change as I'm not entirely sure what effects it will have.
Any plans to merge this into master (drawing behind the navigation bar?)
@jfrolich That branch was an unsuccessful experiment, but I do plan on supporting this feature in Q2 2020
Most helpful comment
@jfrolich That branch was an unsuccessful experiment, but I do plan on supporting this feature in Q2 2020