react-native-splash-screen
react-native-splash-screen copied to clipboard
how to Make a splash screen no Action bar ?
i followed the instructions and when build the app is a splash screen with actionbar, how to remove it ?
Create a style definition for this in android/app/src/main/res/values/styles.xml:
SplashScreen.show(this, R.style.SplashScreenTheme);
Reference https://www.npmjs.com/package/react-native-splash-screen
I had a different bug with action bars on Android, which I'll post here in case it helps anyone. My app displayed an action bar after the splash screen disappeared. I was able to remove the action bar by reverting a change I had made earlier to AppTheme. I changed
<style name="AppTheme" parent="Theme.AppCompat">
to
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
This isn't the same bug you're describing, but it might give you a clue as to how action bars are controlled on Android. If you're still having trouble with hiding action bars, check out https://www.geeksforgeeks.org/different-ways-to-hide-action-bar-in-android-with-examples/.