gxsshallot / react-native-pure-navigation-bar

A fully customizable navigation bar in React Native.
MIT License
96 stars 19 forks source link

Fix Android StatusBar Height. #1

Closed BenQoder closed 6 years ago

BenQoder commented 6 years ago

Fix Android Status Bar Height From 0 to current Height

gxsshallot commented 6 years ago

We do not take attention to this point. My colleague told me this value is not zero, and get the real status bar height. But zero is ok on our project. We will test it later and find the differences, or you can tell me which android device display error when zero. Thanks, and I'm a developer for iOS.......

BenQoder commented 6 years ago

The Preview Below Is Without Current Status Bar Height, You See, There's No Spacing From The Top Bar. screenshot_1535515420

Now, After Setting Current Height, screenshot_1535515319 The Nav Shifts From Status Bar

BenQoder commented 6 years ago

I Hope You Are Able To Spot The Differences.

gxsshallot commented 6 years ago

Maybe you use StatusBar.setTranslucent to change the translucent status. I will consider this situation and publish a new version later.

gxsshallot commented 6 years ago

@BenQoder I have published v1.2.5, and add support for 'translucent' props. You can see README or example project. Thanks for your attention.