react-native-navbar-color icon indicating copy to clipboard operation
react-native-navbar-color copied to clipboard

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

Open Cassendra4 opened this issue 6 years ago • 1 comments

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?

Cassendra4 avatar Sep 03 '18 08:09 Cassendra4

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

BhavanPatel avatar Mar 25 '19 11:03 BhavanPatel