BhavanPatel / react-native-navbar-color

Module for change color of react-native footer navigation bar and Statusbar
MIT License
53 stars 20 forks source link

Doesn't work with "android:windowTranslucentNavigation=true" #3

Open Cassendra4 opened 5 years ago

Cassendra4 commented 5 years ago

Hi,

In my react-native project, my styles.xml looks like below.

<resources>

    <!-- Base application theme. -->
    <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <!-- Customize your theme here. -->
        <item name="android:windowTranslucentNavigation">true</item>
    </style>

</resources>

If I will just change the color NavigationBar.setColor('#ffab8e'); in componentDidMount() this would not change anything at all.

screenshot_1535964169

But if I remove the "android:windowTranslucentNavigation" or set to false and use the NavigationBar.setColor('#ffab8e'); then it results the following. But it changes all the alignments of the app.

screenshot_1535964094

Is there any workaround to keep the android:windowTranslucentNavigation=true and change the color as well using your library?

BhavanPatel commented 5 years ago

Thank you for reporting issue. I will look into it and release next version as soon as possible. :)