react-native-navigation icon indicating copy to clipboard operation
react-native-navigation copied to clipboard

[V3/V4] Android <= 8.X show/hide overlay causes abnormal screen behavior

Open whiffsalot opened this issue 6 years ago • 3 comments

Issue Description

This issue only is occurring on Android <= version 8.x both in the simulator and on an app both in debug and release.

After showing/hiding an overlay, pushed screens no longer render correctly. The component exists and fetches it's data, but it doesn't get pushed visually over the correct tab. The screens reappear after pushing the app to the background, then reopening from the background. The code works on future versions of Android, and on IOS.

Still working on making a smaller repro. We are using tab based navigation.

Steps to Reproduce / Code Snippets / Screenshots

Navigation.showOverlay({ component: { name: 'example_overlay' } });
... later from the overlay
Navigation.dismissOverlay(componentId);
Navigation.push('STACK_ID', { component: { name: 'component_name' } });

Environment

  • React Native Navigation version: "^3.2.0",
  • React Native version: "0.61.3"
  • Platform(s) (iOS, Android, or both?): Android <= 8.x
  • Device info (Simulator/Device? OS version? Debug/Release?): Simulator & Device. Release & Debug. Android <= 8.x.

whiffsalot avatar Dec 06 '19 18:12 whiffsalot

same here

griarman avatar Dec 09 '19 11:12 griarman

@kyledmellander Have you managed to make a reproduction? I'm investigating a similar issue and I think statusBar.translucent: true is causing issues on Android API <= 28

guyca avatar Dec 26 '19 10:12 guyca

@guyca Not sure that this is related to the statusBar.translucent: true bug you fixed More specifically, the issue we run into is when we have a combination of bottom tabs and a side menu. If we navigate away from the initial tab to another one, then open the side menu, pushing screens from the side menu results in the behavior described by @kyledmellander

FWIW the playground currently has this scenario also broken - you can see in the webm the side menu pushes screens successfully when going SideMenu -> Open Left -> Push, but fail to push screens when going BottomTabs -> Tab 2 -> SideMenu inside BottomTabs -> Open Left -> Push, which matches the behavior we see in our app on android API <= 27. This was recorded with the react-native-navigation master branch @ commit 82e48079dc4ef24639b215af83d1344aa021c281 I had hoped to leverage the playground to put together a simple repro, but the SideMenu inside BottomTabs has the same behavior for both android api 28 and 29, so it's unclear that the specific issue is currently captured by the playground app. Going to dig in a bit more and try to come up with an example that repros on API 27 and not >=28

edit - ran the playground on iOS and the SideMenu inside BottomTabs also fails to push screens from the side menu, so the issue there is likely unrelated to what we're running in to edit - android 8.1 is API 27, updated API numbers used

tavour-frank avatar Dec 26 '19 22:12 tavour-frank