Spoutnik97 / react-native-root-toaster

MIT License
12 stars 0 forks source link

Status bar color #1

Open theguigs opened 4 years ago

theguigs commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 3 years ago

Yes well done! I'll fix this