我在用 react native smart splash screen. 我的问题是 is there any way to hide status-bar on splash screen in android ? (它在ios中工作正常). On MainActivity.java, just like that: @Overrideprotected void onCreate(Bundle savedIns
react native smart splash screen.
我的问题是
is there any way to hide status-bar on splash screen in android ?
(它在ios中工作正常).
On MainActivity.java, just like that:
@Override protected void onCreate(Bundle savedInstanceState) { SplashScreen.show(this, true); // <- second parameter is true, to hide StatusBar super.onCreate(savedInstanceState); }
来源:https://github.com/crazycodeboy/react-native-splash-screen/issues/105#issuecomment-401966983