Skip to content

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