generator-rn-toolbox: Generating splash screen on Android causes crash due to launch_screen_bitmap.xml syntax
My apologies for not having the stack trace, I was doing this on my other computer which isnโt available at the moment.
Generating splash screens for Android resulted in the app crashing on launch, I was able to fix it by changing the second line in android/app/src/main/res/drawable/launch_screen_bitmap.xml from:
<item android:drawable="@color/splashBackground"/>
to the following:
<item android:drawable="@android:color/darker_gray"/>
Iโm incredibly new to Android development so not sure why or how that fixed things ๐
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 2
- Comments: 20 (7 by maintainers)
I had the same issue.
Android 7.1.1
Here was the stack trace
I was able to fix it by changing colors.xml from
to
Same issue. I changed manually colors.xml. Value of item was empty, only with a โ#โ character. I changed by #000 then app runs again.
I was having the same issue (generated my splash screen from a .psd). @blaketarterโs solution of modifying the
colors.xmlfile fixed it for me.