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

Forced Dark Mode breaks colors on splash screen #17

Open
dav1app opened this issue Nov 25, 2020 · 0 comments
Open

Forced Dark Mode breaks colors on splash screen #17

dav1app opened this issue Nov 25, 2020 · 0 comments

Comments

@dav1app
Copy link

dav1app commented Nov 25, 2020

When using the latest API to build an app, Android forces dark mode in some applications. This breaks the splash screen by changing the color of Animated.View component.

The only way to prevent that from happening is disabling forced dark mode.

android/app/src/main/res/values/styles.xml

<resources>

    <!-- Base application theme. -->
    <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        //...
        <item name="android:forceDarkAllowed">false</item> // <- add this
    </style>

</resources>


@dav1app dav1app changed the title Forced Dark Mode breaks only the splash screen Forced Dark Mode breaks colors on splash screen Nov 26, 2020
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

1 participant