React-native-navigation: topBar flickers when popping screens on IOS12

Created on 25 Sep 2020  ·  10Comments  ·  Source: wix/react-native-navigation

Issue Description

This does not reproduce on IOS13/14, but on IOS12 if the topBar has a non-default background color when using bottom tabs, popping screens causes the topBar to flash in the default color.

Steps to Reproduce / Code Snippets / Screenshots

Repository with a repro is here: https://github.com/zzorba/RnnHeaderFlicker/tree/master

The steps seem to be

1) Use BottomTabs
2) Use Navigation.setDefaultOptions to change topBar: { background: { color: 'red' } }
3) Push a screen in one of the tabs, and then pop it.


Environment

  • React Native Navigation version: 7.0.0
  • React Native version: 0.63.2
  • Platform(s): iOS
  • Device info: Reproduces on both device and simulator, but seems to only happen on IOS12. I have not tested lower versions of iOS as the simulator is no longer available.
iOS acceptebug good first task

All 10 comments

@zzorba could you please confirm that this is fixed? just use "react-native-navigation": "https://github.com/reime005/react-native-navigation#86cfd57"

@reime005, I can confirm this is fixed with the 7.1.0 release (which it looks like has your change merged into it?).

I tried to test the commit you linked directly, but received a message along the lines of However, this package itself specifies amainmodule field that could not be resolved.

Thank you for the fix, I really appreciate it!

@zzorba it is not yet merged. I've tested it with 7.1.0 and for me it is still there

Yeah, not sure why it appeared to have gone away, but you're absolutely correct. Trying to test the branch again.

Applying your diff manually I can confirm that the fix works as expected, the flicker is gone.

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.

Not stale, this bug still exists on the latest version as far as I can tell.

Just confirming that this is still an issue on iOS 12 with version 7.5.0 of react-native-navigation

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.

Not stale - I confirmed this issue is still present on iOS 12 in v7.8.3. Beyond the just the flickering on pop, it changes my title color from white to black until I navigate to another tab and return.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

charlesluo2014 picture charlesluo2014  ·  3Comments

birkir picture birkir  ·  3Comments

edcs picture edcs  ·  3Comments

EliSadaka picture EliSadaka  ·  3Comments

zhanguangao picture zhanguangao  ·  3Comments