rn-splash-screen icon indicating copy to clipboard operation
rn-splash-screen copied to clipboard

Android: Allow custom background color

Open ox-michaelradionov opened this issue 8 years ago • 3 comments

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));

ox-michaelradionov avatar Jul 04 '17 11:07 ox-michaelradionov

@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.

mehcode avatar Jul 10 '17 08:07 mehcode

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

ox-michaelradionov avatar Jul 10 '17 08:07 ox-michaelradionov

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

ox-michaelradionov avatar Jul 10 '17 15:07 ox-michaelradionov