question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[IOS] StatusBar doesn't seem to working correctly ?

See original GitHub issue

when rendering a StatusBar directly it doesn’t work ( as in it doesn’t change the barStyle at all.

neither does

  useNavigated(() => {
    StatusBar.setBarStyle('dark-content');
  });

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
grahammendickcommented, Nov 29, 2020

Use the StatusBar from the Navigation router instead. Render it inside the NavigationBar component

import {NavigationBar, StatusBar} from 'navigation-react-native';

<NavigationBar>
  <StatusBar tintBarStyle="dark" />
</NavigationBar>
0reactions
grahammendickcommented, Nov 29, 2020

Agreed, didn’t realise I’d impacted the React Native StatusBar. I’ll keep this open until I’ve documented the Navigation router StatusBar

Read more comments on GitHub >

github_iconTop Results From Across the Web

Status bar style not applied during launch on iPad
This seems to work correctly on iPhones, but on iPads, the selected status bar style doesn't seem to be applied during the launch...
Read more >
iPhone Status Bar Missing? Here's Why & The Fix!
Your iPhone status bar is missing because a minor software glitch caused it to disappear. The steps below will walk you through a...
Read more >
Here's The Fix: iPhone Status Bar Icons Missing? - YouTube
Here's The Fix: iPhone Status Bar Icons Missing? ; 0:00 Opening ; 0:20 Force Restart ; 0:45 Check for update ; 1:17 All...
Read more >
iOS7 - View under status bar - edgesForExtendedLayout ...
The XIBs do not use Auto Layout, but they do use some Autosizing. I have an issue when running with iOS7, in which...
Read more >
[iOS] Statusbar tap to scroll top doesn't work in nested ...
ios status bar touch scroll top move doesn't work in nested navigation. Is there any workaround for this? Nested navigation is used a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found