react-native-splash-screen icon indicating copy to clipboard operation
react-native-splash-screen copied to clipboard

how to Make a splash screen no Action bar ?

Open thinhtt264 opened this issue 2 years ago • 2 comments

i followed the instructions and when build the app is a splash screen with actionbar, how to remove it ?

thinhtt264 avatar Nov 01 '21 10:11 thinhtt264

Create a style definition for this in android/app/src/main/res/values/styles.xml:

Change your show method to include your custom style:

SplashScreen.show(this, R.style.SplashScreenTheme);

Reference https://www.npmjs.com/package/react-native-splash-screen

suhaillilac avatar Nov 16 '21 12:11 suhaillilac

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

arcticfly avatar Jul 14 '22 19:07 arcticfly