Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status bar color #1

Open
theguigs opened this issue Jun 11, 2020 · 3 comments
Open

Status bar color #1

theguigs opened this issue Jun 11, 2020 · 3 comments

Comments

@theguigs
Copy link

Hi,

When I use Toast.show("Hello world!") with a light statusBar, the statusBar color change to dark/default color after Toaster dismissing.

Thanks

@Spoutnik97
Copy link
Owner

Hi,
How do you define your statusBar color?
Do you use Expo?
Have you tried to rerender your screen?

If you provide a link to a repo, it could help me to understand better from where the issue could come

@theguigs
Copy link
Author

theguigs commented Jun 12, 2020

I'm defining this with <StatusBar barStyle="light-content" /> in my App.js. Indeed i'm using Expo.
I don't want re render my overall screen a new time just for statusBar color.

I think, the problem come to this line : StatusBar.setBarStyle('dark-content'); in RootToaster.tsx. You force statusBar style at dark without looking the previous value on hiding the toaster.

@Spoutnik97
Copy link
Owner

Yes well done! I'll fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants