Kureev / Kureev/react-native-navbar

Required hidden property on statusBar option

Open
#100 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.9k
Forks
318
PR merge metrics
No merged PRs in 30d

Description

It works fine to not pass the `statusBar` property in, but if it's given, it must specify `hidden` to be `false`. This seems like a value to sensibly default and it should not have to be specified.

Without it:

```

```

You get `Argument 0 (BOOL) of RCTStatusBarManager.setHidden must not be null`.

To work around, provide the `hidden` property: `{style: 'light-content', hidden: false}`.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the NavigationBar handling of the statusBar option and reproduce the issue with statusBar={{style: 'light-content'}}. The fix is complete when omitting hidden no longer passes a null value to RCTStatusBarManager.setHidden and the example works without the workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.