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

Android: Allow custom background color #46

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ox-michaelradionov
Copy link

Adds third optional argument to SplashScreen.show() on Android to allow customization of background color. It is important for me because this color appears for a second when keyboard animation happens (it is displayed when space for keyboard is already reserved but opening animation is still happening).
By default white background color is used.

Usage:

import android.graphics.Color;

SplashScreen.show(this, getReactInstanceManager(), Color.rgb(255, 0, 0));

@mehcode
Copy link
Owner

mehcode commented Jul 10, 2017

@ox-michaelradionov Would it be possible to get this color from the theme? Or something similar declaratively? I'll merge this if that's non-trivial or doesn't make sense to you.

@ox-michaelradionov
Copy link
Author

@mehcode I'm not sure if it is possible, I'll check

@ox-michaelradionov
Copy link
Author

@mehcode I've updated the PR to use themes as you suggested.

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

Successfully merging this pull request may close these issues.

2 participants