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

[v2] pushing screen with topbar visible from screen with invisible topbar

Open danielgindi opened this issue 8 years ago • 14 comments

Issue Description

I have a stack root with topBar set as visible: false, and a sidemenu. Clicking on a sidemenu option - the menu is hidden and a new screen is pushed. The problem is - that the topBar in the new screen is randomly visible or invisible (while it should be visible)


Environment

  • React Native Navigation version: 2.0.2478
  • React Native version: 0.56.0
  • Platform(s) (iOS, Android, or both?): Android
  • Device info (Simulator/Device? OS version? Debug/Release?): Simulator, Api 28, Debug

danielgindi avatar Aug 18 '18 20:08 danielgindi

Same here. Pushing a screen with visible topBar from a screen without a topBar will trigger this issue in Android.

A temporary workaround is to set animate: false in the parent screen. But a real fix would be much better.

starzle avatar Aug 22 '18 01:08 starzle

What I did for hackish fix is to set the topBar transparent:true and set the background color of topBar same with the content. This will fix the jumping of topBar from no topbar screen going to with topbar screen.

webdevsyd avatar Aug 22 '18 02:08 webdevsyd

@webdevsyd yes but that won't work if you need to occupy that space with your own elements

danielgindi avatar Aug 22 '18 07:08 danielgindi

@danielgindi Did you solve this problem?

webdevsyd avatar Aug 23 '18 12:08 webdevsyd

@webdevsyd Nope. I've tried removing the - 1 here, which improved the odds of the topbar being on top greatly. But it still disappears occasionally.

danielgindi avatar Aug 23 '18 12:08 danielgindi

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest version and report back. Thank you for your contributions.

stale[bot] avatar Oct 07 '18 12:10 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

stale[bot] avatar Nov 26 '18 13:11 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

stale[bot] avatar Dec 26 '18 20:12 stale[bot]

Shouldn't be marked as stale. Should be a priority for the author.

danielgindi avatar Dec 27 '18 06:12 danielgindi

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

stale[bot] avatar Jan 26 '19 17:01 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

stale[bot] avatar Feb 25 '19 18:02 stale[bot]

Again? Stupid bot.

danielgindi avatar Feb 25 '19 20:02 danielgindi

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

stale[bot] avatar Mar 27 '19 20:03 stale[bot]

The issue has been closed for inactivity.

stale[bot] avatar Apr 03 '19 21:04 stale[bot]