Skip to content

[Android] RNN 7.19.0 - Top bar not extending behind status bar anymore on mergeOptions  #7232

@manuhook

Description

@manuhook

🐛 Bug Report

Because of e63bfd2
When doing a mergeOptions on a screen where statusBar drawBehind is set to true in static options() or in Navigation.setDefaultOptions() the Top bar is not extending behind status bar anymore.

@MBrianLoc

The only solution now to avoid this problem is to set again in each mergeOptions statusBar> drawBehind: true, even if there is no change.

Have you read the Contributing Guidelines on issues?

Yes

To Reproduce

  1. Push a screen with statusBar> drawBehind: true
  2. Do a mergeOption
  3. You will see that the top bar is not extending behind status bar after the mergeOption. The padding above the topbar is set to 0.

Expected behavior

When doing a mergeOptions on a screen where statusBar drawBehind is set to true in static options() or in Navigation.setDefaultOptions() the Top bar should extend behind status bar and the padding above the topbar shouldn't be set to 0.

Actual Behavior

When doing a mergeOptions on a screen where statusBar drawBehind is set to true in static options() or in Navigation.setDefaultOptions() the Top bar the padding above the topbar is set to 0.

Your Environment

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

Reproducible Demo

(Paste the link to an example repo and exact instructions to reproduce the issue.)

Are you willing to resolve this issue by submitting a Pull Request?

  • ✖️   Yes, I have the time, and I know how to start.
  • ✖️   Yes, I have the time, but I don't know how to start. I would need guidance.
  • ✅   No, I don’t have the knowledge and I’m okay to wait for the community / maintainers to resolve this issue.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions