There are some differences for new versions of react-native on android that made me stuck on splash screen section, hope it helps someone: 1) Remove completely line with styles.xml file in android/app/src/main/res/values folder, i had an error "Didn't find class "RelativeLayout" otherwise. This solution was recommended on one of github issues of this lib 2) Don't change MainApplication.java class in newer version of android, github doc is outdated, change only MainActivity.java class as in video
I have created splash screen without this package. so in styles.xml I have mentioned @layout/launch_screen But in launch_screen.xml I get the error RelativeLayout class not found. I could have directly given the image in styles.xml like this: @drawable/screen, but this is stretching my splash image. Can you help what to do?
Sir i got this error while app is build, can you help me? Execution failed for task ':react-native-splash-screen:writeDebugAarMetadata'. > Failed to create parent directory '/Users/khoirulafwan/Documents/CoffeApp/node_modules/react-native-splash-screen/android/build' when creating directory '/Users/khoirulafwan/Documents/CoffeApp/node_modules/react-native-splash-screen/android/build/intermediates/aar_metadata/debug'
There can be one of the 2 solutions 1. Delete the build folder in the android/app directory and try again If this solution doesn't work then 2. The .gradle doesn't have the necessary permission. To do so hit this command chown -R user:user /path/to/.gradle
Yes, if the logo is blurry, make sure you provide high quality image with described ratio. Also make sure you do keep very less blank space around actual logo.
its so poor work , i follow him and be wast my time at the end , because my app has not show the splash screen also be has so errors show like this > Task :app:compileDebugKotlin FAILED
It seems like your app decided to take a vacation instead of showing you the splash screen! Let's get it back on track-make sure you set a proper kotlin version in build.gradle file. Still facing issues, kindly share the details on my Discord discord.gg/Xw75nsEYtt
I'm not sure if this is approach for native layer. SVG does not supported on iOS lower 13. And as per my understanding both iOS and Android specifically have defined approach for for adding images for splash.
I encountered a problem, after installing and configuring the splash-screen for Android, everything works, but when I add the TextInput tag to the application, an error occurs: Drawable com.splash_screen:layout/launch_screen with resourse ID #0x7f0b002f File res/layout/launch_screen.xml from drawable resourse ID #0x7f0b002f Class not found RelativeLayout Didn`t find class "RelativeLayout" on path: DexPathList[[zip file "data/app/"
Hi in the Styles.xml you've replace android:editTextBackground, from my side it is causing crash when using PhoneInput View, is someone face same issue ?
yes, do not make that change it will cause the issue. android:editTextBackground attribute in the theme is meant to define the background drawable for EditText fields
On iOS how do you prevent the screen from turning white when it says ex: "Bundling 25%" at the top? My app takes a little longer to do that so it is a white screen for a while. Is this just something that will happen during development and not show a white screen when in production?
Yes, this is the expected behaviour. Bundling part will go away in production, as we'll bundle the app and then publish. Published version won't display this white screen at all.
HI! may I ask, how can I open the file with xcode? I tried to open it by typing open ios/.xcworkspace/, but it said the file didnt exist. Do I have to create the file with xcworkspace format? I thought it was just a shortcut to open it witch xcode
i am facing an issue RelativeLayout class is not found...i have follow al your instruction....but cant understand why i am getting this issue.. please help.
Why do we need a package dependency from Android side when editing SplashScreen on xcode on iOS side. Is there no way to do it without using packages or is it too difficult? By the way, your content is very useful. Thank you...
Thanks for watching my content and I am glad it helped. We need the package to make our splash screen a real splash screen. If we will go only with the android and xcode customisation, it will be treated as a new screen just after default splash. So first the default splash screen will be seen then our customised one. To get rid of this default behaviour, we should use the package dependancy.
for android: you just need to add new drawable folder for each language under android/app/src/main/res and put the localised image with same name under the folders so let's say we need to add Spanish and French localisation with default English one. We need to create 2 additional folders as below res/drawable-es res/drawable-fr for iOS: Open Xcode, click on 'tutorial' in left side panel. Go to 'Images' here we can see the app image and splash screen image named as 'LaunchImage' In the right panel you will see 'Localization'. You just need to mark another language and add new LaunchImage
Are you using expo version? If yes, then there won't be any android and ios folders. It is available for cli version. You can move to cli from expo using eject in expo.
@tuananhdinh527 Thanks for following through the video. This issue occurs if the library is not set properly. Kindly retry the instructions step by step. Let me know if you still face the same issue.
@@codewithabdul hi brother, Right now I am finding an issue that in IOS when we start the application there is a white or black screen flash after splash screen got hide
@@codewithabdul it's a white flash, first it was white but after I tried some of the tricks it changed to black, and it is after the splash screen, infact the splash screen only appear for some milli seconds and after that that black screen appears and then the application it self
In the most current versions there are some differences in the default code, I am getting an error when running the Android version where a message is displayed in the emulator saying that the native splashscreen is trying to override the installed one. Do you have any suggestions to remove this conflict? Thanks.
Great video! By the way, any thoughts on react-native-bootsplash library as a replacement the one used in video? (as it has not been updated more then 2 years)
Thanks for pointing out the issue. We need to add below line in styles.xml file to get rid of this issue. true I've updated the source code on GitHub. Kindly have a look.
You'll be able to see the fix in the next video of this tutorial. Make sure to delete build folder inside the android/app before running the application. Also you need to restart the app bundler.
@@alirazalalani8323 there is no way to disable it on android 12+ , there are ways to make it transparent, but it will have other ux issues. So best thing is to edit the default splash screen to your liking( have to follow the given guidelines for this).