React-native-navigation: Blank topBar when navigating to a screen that hides topBar on Android

Created on 20 Feb 2019  路  7Comments  路  Source: wix/react-native-navigation

Issue Description

Navigating from a screen that has a topBar to a screen that hides topBar, there's a blank during animation on the last screen. Only appears on Android.

Steps to Reproduce / Code Snippets / Screenshots

// first screen's topBar
topBar: {
  background: {
    color: '#00ff00',
  },
  title: {
    text: 'My Screen'
  },
  animate: false
}

// second screen's topBar
topBar: {
  visible: false,
  drawBehind: true,
  animate: false,
}

issue


Environment

  • React Native Navigation version: 2.12.0
  • React Native version: 0.57.7
  • Platform(s) (iOS, Android, or both?): Android
  • Device info (Simulator/Device? OS version? Debug/Release?): Android Both

Thank you.

馃彋 stale

Most helpful comment

This shouldn't be closed, I believe it's a bug.

Setting visible: false should hide the topBar completely, but now it doesn't.

I got it working by also setting drawBehind: true...

This should be reopened.

All 7 comments

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.

The issue has been closed for inactivity.

This shouldn't be closed, I believe it's a bug.

Setting visible: false should hide the topBar completely, but now it doesn't.

I got it working by also setting drawBehind: true...

This should be reopened.

I have the same issue. Any solution to fix this issue?

Still happening with RNN v 2.20.2

Also, still happen on 2.21.0, both Android and iOS

Same issue here,
looks weird

any solutions on how to make it prettier ?

Was this page helpful?
0 / 5 - 0 ratings