I just implemented a Navigator component with a custom navigationBar. When it renders, the navBar renders at the bottom of the screen, but otherwise renders correctly. I noticed that this is because in the code, navBar renders after the scene: https://github.com/facebook/react-native/blob/master/Libraries/CustomComponents/Navigator/Navigator.js#L1318-L1321
I noticed that Navigator.NavigationBar gets around this by setting the navBar component to position: absolute (https://github.com/facebook/react-native/blob/master/Libraries/CustomComponents/Navigator/NavigatorNavigationBar.js#L190-L195)
Would it make sense to have the navbar render first so that it was at the top by default? I can turn open a PR if so.
I just implemented a
Navigatorcomponent with a customnavigationBar. When it renders, the navBar renders at the bottom of the screen, but otherwise renders correctly. I noticed that this is because in the code, navBar renders after the scene: https://github.com/facebook/react-native/blob/master/Libraries/CustomComponents/Navigator/Navigator.js#L1318-L1321I noticed that
Navigator.NavigationBargets around this by setting the navBar component toposition: absolute(https://github.com/facebook/react-native/blob/master/Libraries/CustomComponents/Navigator/NavigatorNavigationBar.js#L190-L195)Would it make sense to have the navbar render first so that it was at the top by default? I can turn open a PR if so.