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

Top Bar gets drawn behind status bar (v2)

Open djschilling opened this issue 8 years ago • 13 comments

Issue Description

I want to have a status bar and a top bar. But when i use both the top bar gets drawn behind the status bar and half the text is not visible. I tried to set drawBehind in statusBar and topBar to false. But this had no effect.

Steps to Reproduce / Code Snippets / Screenshots

bildschirmfoto 2018-10-15 um 11 31 10


Environment

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

djschilling avatar Oct 15 '18 09:10 djschilling

Also see the same issue. It works normally before 2.0.2578.

starzle avatar Oct 19 '18 17:10 starzle

Does this reproduce in the playground app?

guyca avatar Oct 21 '18 13:10 guyca

I can confirm this is also happening in version 2.0.2620, I've just upgraded and it never happened before.

EDIT: The version mentioned by @starzle does not support RN 0.57, maybe it's related?

LRNZ09 avatar Oct 26 '18 10:10 LRNZ09

Any solution for this?

@edit Actually, possibly restart app help me. Not sure what fixed it.

davidwico avatar Nov 13 '18 11:11 davidwico

Still happening for me with 2.1.3, I think the problem is caused by bottomTabs layout.

LRNZ09 avatar Nov 20 '18 17:11 LRNZ09

with RNN 2.1.3, the same issue is happening on me. i am using RN 0.56.0

robobakery avatar Dec 01 '18 08:12 robobakery

Just set the "drawBehind:false" in statusBar it should be fix...like below i think you set drawBehind:true due to why this is happening.... @davidwico

options: { statusBar: { visible: true, drawBehind: false, }, topBar: { visible: true, drawBehind: false, animate: true, } }

Rana-Muhammad-Amir avatar Dec 05 '18 10:12 Rana-Muhammad-Amir

@Rana-Muhammad-Amir that's how it's supposed to work. However it does not and I think it's also related to this issue.

LRNZ09 avatar Dec 06 '18 10:12 LRNZ09

After trying to rollback to earlier versions, trying around each parameters of Drawing behind or not, adding top margins to the layout and STILL it drew behind, I realized I had this part in my view

<StatusBar translucent={true} backgroundColor={this.props.color} /> Please note that if you have this option, this basically removes whatever RNN is trying to do as it will make that bar draw behind... So all I had to do to get this working :

<StatusBar translucent={false} backgroundColor={this.props.color} />

klanthier avatar Dec 20 '18 04:12 klanthier

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 19 '19 04:01 stale[bot]

Related issue with bug replicated in a repo https://github.com/wix/react-native-navigation/issues/4605

LRNZ09 avatar Jan 21 '19 14:01 LRNZ09

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 20 '19 15:02 stale[bot]

The issue has been closed for inactivity.

stale[bot] avatar Feb 27 '19 15:02 stale[bot]