Тёмный

1. The Ultimate Guide to React Native App Icons & Splash Screens 

CodeWithAbdul
Подписаться 1,4 тыс.
Просмотров 77 тыс.
50% 1

Опубликовано:

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 179   
@vborisov
@vborisov 23 дня назад
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
@debabratsamal8443
@debabratsamal8443 4 дня назад
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?
@simple_user000
@simple_user000 6 месяцев назад
Amazing tutorial! Please upload a new one for RN 0.73, as java files have been replaced with kotlin
@codewithabdul
@codewithabdul 6 месяцев назад
I do have plans to update react native to 0.73 soon. Thanks for the suggestion and stay tuned🙏🏻
@amanuelworku9170
@amanuelworku9170 7 месяцев назад
Man where have you been my whole month, thank you so much saved much of my time.
@codewithabdul
@codewithabdul 7 месяцев назад
I’m glad it helped. This means a lot to me. Thanks 🙏🏻
@Qwertythoughts123
@Qwertythoughts123 15 дней назад
@@codewithabdul You are awesome man
@worthyvibes9989
@worthyvibes9989 7 дней назад
getting alot of errors from gradle while appling splash for android .. crash my project huh
@SaadSiddiqui-p3v
@SaadSiddiqui-p3v 2 месяца назад
Can you make the Stausbar translucent in the splash screen and make it stretch the full window?
@worthyvibes9989
@worthyvibes9989 7 дней назад
why android is showing two splash screens ???
@timpenguin16
@timpenguin16 Год назад
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'
@codewithabdul
@codewithabdul Год назад
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
@milanvala2363
@milanvala2363 3 месяца назад
do not make the change in styles.xml, it will cause the issue.
@richardkirigaya8254
@richardkirigaya8254 Год назад
Getting issue: class not found RelativeLayout, after following your instructions on adding a splash screen on android. Any clues on fixing this ?
@codewithabdul
@codewithabdul Год назад
Hello @richardkirigaya8254, this seems like a device specific issue. I've found a solution online. Kindly check this out. stackoverflow.com/a/51213911
@richardkirigaya8254
@richardkirigaya8254 Год назад
@@codewithabdul Working, appreciated
@jesseogola4590
@jesseogola4590 11 месяцев назад
@@codewithabdul Life saver!!
@mohammadfaisal3649
@mohammadfaisal3649 4 месяца назад
sir, I have applied the same procedure. but the logo is showing a bit blurred. can I do something about it?
@codewithabdul
@codewithabdul 4 месяца назад
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.
@zehchapazik
@zehchapazik 5 месяцев назад
this is indeed the ultimate tutorial on this subject! congrats man, keep up the great work!!
@codewithabdul
@codewithabdul 5 месяцев назад
Thanks a lot! 🙏🏻
@sayantabhattacharjee9808
@sayantabhattacharjee9808 4 месяца назад
how to add only 1 splash screen, here there are 2 splash screen
@Abdulrehman-gz6mr
@Abdulrehman-gz6mr Месяц назад
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
@codewithabdul
@codewithabdul Месяц назад
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
@zillboy
@zillboy 20 дней назад
Loved it bro 👍🏻👍🏻
@codewithabdul
@codewithabdul 20 дней назад
🙏🏻 I’m glad it helped.
@carloscazelattojr
@carloscazelattojr 6 месяцев назад
When starting the project, it is creating the files with kt (kotlin) extension instead of java. Do you know why it's not Java?
@codewithabdul
@codewithabdul 6 месяцев назад
Latest react native supports kotlin instead of java
@malikhandev
@malikhandev 6 месяцев назад
This is not working in 0.73+ version, specially after kotlin update
@codewithabdul
@codewithabdul 6 месяцев назад
I’m planning to upgrade RN version for this project. Stay tuned.
@dastanikus
@dastanikus Год назад
Hmm. So much pngs. Use just one svg logo file. Or create tsx file and put svg code there. And do it for any icon in your app.
@codewithabdul
@codewithabdul Год назад
An interesting and useful suggestion indeed. Thanks.
@ra-dro
@ra-dro Год назад
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.
@bibekgurung5491
@bibekgurung5491 5 месяцев назад
./gradlew clean command to clean bulid folder on android seems to get rid of the splashscreen we put in using this method.
@peggy-f2e
@peggy-f2e Год назад
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/"
@codewithabdul
@codewithabdul Год назад
Hello, this seems like a device specific issue. I've found a solution online. Kindly check this out. stackoverflow.com/a/51213911
@peggy-f2e
@peggy-f2e Год назад
@@codewithabdul please tell me where to insert this line @drawable/splash_screen
@shubham_v
@shubham_v 10 месяцев назад
I got same error bro Can you please tell me how you fixed that?
@faijanmemon
@faijanmemon 10 месяцев назад
@@shubham_v same bro , are you able to figure it out ?
@faijanmemon
@faijanmemon 10 месяцев назад
were you able to solve that issue ?
@creativestarjsp
@creativestarjsp 7 месяцев назад
React Native 0.73 Version Please 🙏🤝
@codewithabdul
@codewithabdul 7 месяцев назад
Sure 👍🏻
@antonds
@antonds 4 месяца назад
Awesome tutorial! Thank you, Abdul!
@codewithabdul
@codewithabdul 4 месяца назад
Glad it helped. Thanks.
@siwaraouadi5244
@siwaraouadi5244 2 месяца назад
my app file is tsx and i get a rendre error saying Cannot read proprity hide of null
@codewithabdul
@codewithabdul Месяц назад
It seems like the library is not installed properly. Kindly follow the installation guide to make it work proper.
@AbdulMatin_Kadri
@AbdulMatin_Kadri Год назад
For andorid it's showing 2 launch_screen
@codewithabdul
@codewithabdul Год назад
Remove one and try building it again
@daoudabeye9510
@daoudabeye9510 7 месяцев назад
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 ?
@milanvala2363
@milanvala2363 3 месяца назад
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
@SoapCS2
@SoapCS2 Год назад
That terminal light theme is sexy
@codewithabdul
@codewithabdul Год назад
Thanks 😊
@KoreyMadden
@KoreyMadden Год назад
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?
@codewithabdul
@codewithabdul Год назад
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.
@KoreyMadden
@KoreyMadden Год назад
@@codewithabdul Awesome, thank you!
@PraveenKumar-rk1tj
@PraveenKumar-rk1tj 6 месяцев назад
The best explanation ever on youtube,Thank You
@codewithabdul
@codewithabdul 6 месяцев назад
Thanks 🙏🏻
@Shubuu7
@Shubuu7 Год назад
app icon shadow coming in Android how to fix it
@codewithabdul
@codewithabdul Год назад
Can you please explain where the shadow is appearing?
@felipeoliveira9512
@felipeoliveira9512 7 месяцев назад
Thank you friend, you are one friend (:
@codewithabdul
@codewithabdul 7 месяцев назад
😊
@MomentsOfGaming420
@MomentsOfGaming420 9 дней назад
sir my mainactivityfile is kt not java
@codewithabdul
@codewithabdul 9 дней назад
You need to align the syntax with kotlin. Base logic will be same.
@uncafedoble
@uncafedoble Год назад
This is the fist tutorial that I do in the first try. TYSM
@codewithabdul
@codewithabdul Год назад
Good to hear. Thanks.
@iffahfarhana5034
@iffahfarhana5034 9 месяцев назад
why does mine does not work? my apps crashed after i followed yours. can you reply me ASAP?
@codewithabdul
@codewithabdul 9 месяцев назад
At what step is it crashing?
@ozhandrum
@ozhandrum 6 месяцев назад
Showing how to make these (splash screen) without using any library, and other things... Dude you are awesome
@codewithabdul
@codewithabdul 6 месяцев назад
I really appreciate your support and encouragement!
@syedarsalan7000
@syedarsalan7000 6 месяцев назад
App us crashing after displaying a splash screen, can you fix the issue for me?😢
@talhaabbas1816
@talhaabbas1816 6 месяцев назад
tell me more may me i can help
@syedarsalan7000
@syedarsalan7000 6 месяцев назад
@@talhaabbas1816 fixed it using bootsplash, thanks.
@codewithabdul
@codewithabdul 5 месяцев назад
Good to hear
@akashkdas8535
@akashkdas8535 6 месяцев назад
where can i get that bundle for splashscreen android
@codewithabdul
@codewithabdul 6 месяцев назад
Kindly check the video at 00:48
@nikitaarora4631
@nikitaarora4631 4 месяца назад
@@codewithabdul this website is not working . please let us know any other website for making folder for splashscreen
@MuhammadAhmad-fb2ji
@MuhammadAhmad-fb2ji Год назад
I am receiving an error "TypeError: Cannot read property 'hide' of null, js engine: hermes" at "SplashScreen.hide();" and splash screen isn't working
@codewithabdul
@codewithabdul Год назад
Kindly make sure you install supported version of splash screen library. Also try to delete node_modules and reinstall again.
@KhairunnisaHurunIin
@KhairunnisaHurunIin 7 месяцев назад
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
@codewithabdul
@codewithabdul 7 месяцев назад
Hello, sure I’m happy to help I can see a problem in the command you entered. Instead of you should enter to make it work
@KhairunnisaHurunIin
@KhairunnisaHurunIin 7 месяцев назад
Okay, thanks for the answer!@@codewithabdul
@maksymsladik7073
@maksymsladik7073 7 месяцев назад
please, react native 0.73 with react native bootsplash
@codewithabdul
@codewithabdul 5 месяцев назад
Request fulfilled. Kindly check my latest video on bootsplash using RN 0.73. Thanks for the request. I hope this will help. :)
@vkvaraliya7504
@vkvaraliya7504 8 месяцев назад
Crash hoi raha he Release apk bro
@codewithabdul
@codewithabdul 8 месяцев назад
@vkvaraliya7504 error kya de rha hai bro?
@nifemiojinni4631
@nifemiojinni4631 Год назад
Ape tool is not downloading my files and it is taking long to process
@codewithabdul
@codewithabdul Год назад
If Ape Tool is not working for you then you can try another alternative www.appicon.co
@nifemiojinni4631
@nifemiojinni4631 Год назад
​@@codewithabdul it later worked, thanks...do you know what bug causes the app not to load, my app keeps quitting after launching....what can i do?
@codewithabdul
@codewithabdul Год назад
@nifemiojinni4631 you need to check the logs generated on the node bundler to diagnose the issue.
@niveditaghosh7899
@niveditaghosh7899 Год назад
Thanks dude. It was very Helpful and understandable
@codewithabdul
@codewithabdul Год назад
Glad it helped!
@DawidMatyjasik-x5y
@DawidMatyjasik-x5y 7 месяцев назад
could you update your tutorial to React Native 0.73?
@codewithabdul
@codewithabdul 7 месяцев назад
Noted. Thanks for the interest and suggestion. I’ll surely look into it.
@mohammadyeasin6569
@mohammadyeasin6569 11 месяцев назад
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.
@codewithabdul
@codewithabdul 11 месяцев назад
Comment or remove @layout/launch_screen in android/app/src/main/res/values/styles.xml
@dewaldesterhuysen712
@dewaldesterhuysen712 10 месяцев назад
@@codewithabdul Thank you. this worked for me
@yusufpolat9290
@yusufpolat9290 9 месяцев назад
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...
@codewithabdul
@codewithabdul 9 месяцев назад
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.
@yusufpolat9290
@yusufpolat9290 9 месяцев назад
I got it, thank you.🙂@@codewithabdul
@Irfanlesnar
@Irfanlesnar 5 месяцев назад
Wrong development!
@codewithabdul
@codewithabdul 5 месяцев назад
Hey @Irfanlesnar, thanks for watching. Constructive criticisms are always welcome. Kindly lemme know how can we improve?
@Irfanlesnar
@Irfanlesnar 5 месяцев назад
@@codewithabdulyou need to disable default splash screen
@codewithabdul
@codewithabdul 5 месяцев назад
Sure thanks, I’ll look into it.
@omarshabaan8569
@omarshabaan8569 8 месяцев назад
great tutorial. how to localize the splash screen ?
@codewithabdul
@codewithabdul 8 месяцев назад
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
@turbbii290
@turbbii290 Год назад
Hi, this is the video that I exactly need but, I have a big problem, in my project, I can not see the android and ios folders, anyone knows why?
@codewithabdul
@codewithabdul Год назад
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.
@turbbii290
@turbbii290 Год назад
Oh, I didn't know that, thanks a lot! I'll have a look.@@codewithabdul
@alandinh
@alandinh 8 месяцев назад
I got an error: TypeError: Cannot read property 'hide' of null. How can I fix it ?
@codewithabdul
@codewithabdul 8 месяцев назад
@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.
@alandinh
@alandinh 8 месяцев назад
@@codewithabdul I resolved the issue. thank you!
@codewithabdul
@codewithabdul 8 месяцев назад
Good to hear that. Thanks 🙏🏻
@VijaySahani-x7v
@VijaySahani-x7v 8 месяцев назад
Awesome
@codewithabdul
@codewithabdul 8 месяцев назад
Thanks
@alimohammed887
@alimohammed887 Год назад
A hidden gem on RU-vid, keep it up!!
@codewithabdul
@codewithabdul Год назад
Thanks
@talhaabbas1816
@talhaabbas1816 6 месяцев назад
it was way more than useful
@codewithabdul
@codewithabdul 6 месяцев назад
So glad it exceeded your expectations! I aim to over-deliver ;)
@talhaabbas1816
@talhaabbas1816 4 месяца назад
@@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
@codewithabdul 4 месяца назад
Kindly lemme know if this was black screen or white screen? Also is it appearing before splash screen or after splash screen? Thanks
@talhaabbas1816
@talhaabbas1816 4 месяца назад
​@@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
@somecreativeperson6719
@somecreativeperson6719 11 месяцев назад
what is the emulator you are using?
@codewithabdul
@codewithabdul 11 месяцев назад
I am using android 13 and iOS 16 emulators
@Gaynatullin
@Gaynatullin Год назад
Thanks!
@codewithabdul
@codewithabdul Год назад
Welcome!
@tabishabbasi821
@tabishabbasi821 Год назад
awesome
@codewithabdul
@codewithabdul Год назад
Thanks
@lrcmestre
@lrcmestre Год назад
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.
@BrainTeaser2468
@BrainTeaser2468 10 месяцев назад
Same Issue
@codewithabdul
@codewithabdul 6 месяцев назад
Thanks for following the tutorial. Can you please let me know which react-native version you are using?
@mpowereer6992
@mpowereer6992 8 месяцев назад
simple and short tutorial, definietly deserve like
@codewithabdul
@codewithabdul 8 месяцев назад
Appreciated thanks
@MiriamAraújo-y1x
@MiriamAraújo-y1x Год назад
Thank you so much for making this video. 🙏
@codewithabdul
@codewithabdul Год назад
Glad it was helpful!
@rajthapa9006
@rajthapa9006 5 месяцев назад
you're a life saver man
@codewithabdul
@codewithabdul 5 месяцев назад
I’m glad it was helpful. 🙏🏻
@NicholasEduardo
@NicholasEduardo Год назад
Thanks so much, your tutorial was important for me 🙏
@codewithabdul
@codewithabdul Год назад
Good to hear, thanks
@muhammetaydinn
@muhammetaydinn Год назад
dont touch styles.xml
@codewithabdul
@codewithabdul Год назад
Any specific reason for this suggestion?
@jacsdev
@jacsdev 11 месяцев назад
cool!!! Nice tutorial bro!! Congrats
@codewithabdul
@codewithabdul 11 месяцев назад
Thanks. I appreciate your feedback.
@ra-dro
@ra-dro Год назад
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)
@codewithabdul
@codewithabdul Год назад
Probably a good replacement. But as I personally never used it, so cannot comment on it yet.
@Antonym-b5o
@Antonym-b5o Год назад
This guy wants 25$ for a library with a full functionality. Maybe he is crazy, I deleted this shit instantly
@codewithabdul
@codewithabdul 5 месяцев назад
It seems a better replacement. Kindly check my latest video on bootsplash using RN 0.73. I hope this will help. :)
@emmanuelbamidele5064
@emmanuelbamidele5064 9 месяцев назад
how did you get the ios simulator
@codewithabdul
@codewithabdul 9 месяцев назад
For iOS simulator you should run ‘npm run ios’ on Mac.
@emmanuelbamidele5064
@emmanuelbamidele5064 9 месяцев назад
@codewithabdul okay does this mean I cant get it on windows ...
@codewithabdul
@codewithabdul 9 месяцев назад
@emmanuelbamidele5064 yes, you cannot get it on windows. There is a workaround though, you can install macOS on windows using VMware.
@codewithabdul
@codewithabdul 9 месяцев назад
@emmanuelbamidele5064 through VM ware, yes.
@melekkhmekhem
@melekkhmekhem 10 месяцев назад
thanks bro
@codewithabdul
@codewithabdul 10 месяцев назад
Welcome
@muzammil8498
@muzammil8498 11 месяцев назад
nice video😍
@codewithabdul
@codewithabdul 11 месяцев назад
Thanks
@TienNguyen-un7lo
@TienNguyen-un7lo Год назад
awesome
@codewithabdul
@codewithabdul Год назад
Thanks
@lelouchbritannia9045
@lelouchbritannia9045 Год назад
In the beginning of the video 0:11. When launching the app app icon is showing up as splash screen, how to git rid of this?
@codewithabdul
@codewithabdul Год назад
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.
@lelouchbritannia9045
@lelouchbritannia9045 Год назад
@@codewithabdul no this did not fix the issue, There is any other way to fix this?
@codewithabdul
@codewithabdul Год назад
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
@alirazalalani8323 Год назад
same issue here
@lelouchbritannia9045
@lelouchbritannia9045 Год назад
@@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).
@hussambinnoor
@hussambinnoor Год назад
not working
@codewithabdul
@codewithabdul Год назад
Can you please pinpoint what issue are you facing?
@hussambinnoor
@hussambinnoor Год назад
@@codewithabdul its not working nothing is happening i folowed all your instructions
@techieoriname
@techieoriname Год назад
@@hussambinnoor use this instead. true
@viomeshowers
@viomeshowers 8 месяцев назад
@8:08 @drawable/screen
@codewithabdul
@codewithabdul 6 месяцев назад
Thanks a lot for pointing this out. I will make changes in the next video of this series.
Далее
Как снимали мой клип POLI - Котик
00:37
ATOMIC DESIGN with REACT and TAILWIND
39:36
Splash Screen In 10 Steps | React Native | Android
8:35