React Native 101: Building Your First App and Troubleshooting Common Issues

Sdílet
Vložit
  • čas přidán 27. 01. 2023
  • Welcome to a youtube channel dedicated to programming and coding related tutorials. We talk about tech, write code, discuss about cloud and devops. That’s what we do all day, all year. We roll out a lot of series and videos on our channel.
    All the learning resources such as code files, documentations, articles and community discussions are available on our website:
    chaicode.com/
    You can find our discord link, github link etc on the above website.
    Twitter/X link: x.com/hiteshdotcom
    Discord link: hitesh.ai/discord
    Learn React with 10 projects: • Let's learn react from...
    Learn Docker: • A practical guide on D...
    Learn Kubernetes: • Complete Kubernetes Co...
    How does a browser works: • How does a browser wor...
    How nodejs works: • How node JS works | En...
    Learn Redux-toolkit: • Learn Redux Toolkit in...
    Learn NextJS: • Nextjs Full stack course
    Learn Typescript: • Why to learn Typescript
    Learn Javascript: • Welcome to new JavaScr...
    Learn React Native: • React Native Mastery: ...
    Learn Zustand: • React state management...
    Learn Golang: • How to get started wit...
  • Věda a technologie

Komentáře • 214

  • @LorenzoJimenez
    @LorenzoJimenez Před rokem +5

    Kudos for this rare video. There are many issues to face: upgrading to a higher React Native version, when Apple deprecates a version of IOS, 3rd party libraries not upgraded to a new react version or incompatible to a higher verion of ios or android

  • @pademo57
    @pademo57 Před rokem +17

    Absolutely love these videos. Finally someone who explains not only what is the best way to set this up but also what to look for or what to do when something goes wrong. Thank you and keep up the good work!

  • @venkatchalam6385
    @venkatchalam6385 Před rokem +4

    After long time I am waiting for your video for react native thank u

  • @guddubhaiyathikanamirzapur4079

    Your videos are easily understandable...Even if I have to pay something for these kinds of lectures, I will happily do it.

  • @virinchibalusani5726
    @virinchibalusani5726 Před 2 měsíci

    Thanks buddy💚
    Great job Hashnode🤝

  • @rehandev7833
    @rehandev7833 Před 5 měsíci

    After facing my first error in getting the Metro Server up and running, really excited to start writing code in React Native. Moving onto the next video :)

  • @baanuaali2818
    @baanuaali2818 Před 8 měsíci

    Thank you very much, amazing course, the best i found, everything clear

  • @weligamage1
    @weligamage1 Před rokem

    Thank you very much. This is really helpful.

  • @asmakamaal1258
    @asmakamaal1258 Před 10 měsíci

    Thank you so much Sir for this...😊🌼

  • @siddharthabajpai4182
    @siddharthabajpai4182 Před rokem

    love you sir ji....🙂🙂🙂🙂almost lost my calm starting the app. but you were right. make errors your friend. thank you sir

  • @AshishYadav_63
    @AshishYadav_63 Před rokem

    Waiting for next video sir......I am also learning backend dev using node js and express hope mobile development and Web development don't mix-up just because I'm learning them both at same time 🙂

  • @SammarpanDasguptaOfficial

    Nice work sir.... Some struggle to setup but worth it... Excited for next video

    • @khushsharma6470
      @khushsharma6470 Před 4 měsíci

      its been 3 days i couldn’t do it can you help me

  • @techsonaniya8923
    @techsonaniya8923 Před rokem

    Very good teaching skills

  • @10bhavankumarv47
    @10bhavankumarv47 Před rokem +3

    Hi sir great video 👏 BTW, when I run "adb devices" it's not listing any devices. Also could you please explain how to mirror the output on our phone more elaborately on the next episode? Thanks in advance 😉

  • @NaveenKumar-jo6cv
    @NaveenKumar-jo6cv Před 11 měsíci

    I can not find my device under the "adb devices" command. I also tried using emulator but it also gives me an error stating: Could not open settings generic class cache for settings file

  • @iqbalhussaincs9998
    @iqbalhussaincs9998 Před rokem

    Thank you sir ❤️

  • @sohankumardash1109
    @sohankumardash1109 Před rokem +1

    Hello Hitesh Sir,
    Please also make a video on how you set up your android studio. I found it hard to install it.
    My app is not running and its trying to download some libraries and then fails.
    Thanks

  • @harshit2629
    @harshit2629 Před 4 měsíci

    ❤thank you Sir

  • @soumyadeepsengupta530

    sir i everyday i check for the new video for the course . i am very much excited for the whole series

  • @nike101m
    @nike101m Před 11 měsíci

    HI bro, The option Select USB Configuration not shown in Onepluse 7t mobile.

  • @sumitram4132
    @sumitram4132 Před 10 měsíci +1

    It's takes 3 months to setup using CLI process but finally did it.

  • @abdu5822
    @abdu5822 Před rokem

    What about using npx create-expo-app ? the diff and when to use one ?

  • @EthicalRaja
    @EthicalRaja Před rokem +1

    Thankuuuuuiu 🥺🥺🥺

  • @mehdi2368
    @mehdi2368 Před rokem +3

    for people who are facing problems setuping env i recommend you to start with expo and then after you learn react native you can solve your previous problems

    • @relks8429
      @relks8429 Před 11 měsíci +1

      For everyone that is having problems, do not use expo go under any circunstancies. It will bring you lot of more problems.

  • @AnasSaleem-bd8vf
    @AnasSaleem-bd8vf Před 2 měsíci

    very help full video

  • @rv-web
    @rv-web Před rokem

    Hi, Could you help me the guide to setup environment on macOS? I followed the documentation but getting many errors. Also it slowdown performance of my macOS. Using RN 0.71.6 version

  • @adityatiwari9027
    @adityatiwari9027 Před rokem

    Hello sir...while running the app I'm getting error that unable to load script and some bundle related issue..
    I have tried everything which I knew but the error didn't solve.

  • @lordmod9325
    @lordmod9325 Před rokem +1

    For windows we can use global environment variables for sdk

  • @bhumit070
    @bhumit070 Před rokem +3

    sir how do you mirror phone on mac ?

  • @shubhambahre9021
    @shubhambahre9021 Před 11 měsíci +1

    The discord link is not working. It says "Privay error"

  • @DYNO_619
    @DYNO_619 Před rokem +4

    React Native environment setup is damn difficult but finally I've done it in 2 hrs. Most of the issues were solved by setting the env variable.

  • @shakyaji563
    @shakyaji563 Před rokem

    Hi i have used a company laptop. So we didn't install adb driver. Now what i do for run first program

  • @harshalsathe3946
    @harshalsathe3946 Před rokem

    Dear Hitesh, I am a web designer and currently making websites in WordPress but I am facing so much problem in page loading speed and hacking attempts on WordPress website as its uses theme and plugins... I want to devolve a dynamic website which is fast in loading compare to WordPress easy to maintain .. and no need to update the code frequently ... What language or framework will you suggest me ..please guide me on this...

  • @shubham_jha
    @shubham_jha Před rokem

    Thanks!!

  • @anshikgupta2993
    @anshikgupta2993 Před měsícem

    Hey can I get the discord channel link as I am facing issues while running the application android / ios emulator on a MAC computer.

  • @Peterin
    @Peterin Před rokem +1

    how to bring the phones screen on the laptop? Anybody pls provide a solution for mac

  • @pitamdas4882
    @pitamdas4882 Před 5 měsíci

    Finally it done. After 3 hours. Thank hitesh sir, also thanks chatGpt

    • @khushsharma6470
      @khushsharma6470 Před 4 měsíci +1

      its been 3 days for me i coudlnt do it can you help me

    • @pitamdas4882
      @pitamdas4882 Před 4 měsíci

      What type of problem

    • @khushsharma6470
      @khushsharma6470 Před 4 měsíci

      @@pitamdas4882 What went wrong:
      Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
      > Could not determine the dependencies of null.
      > SDK location not found. Define a valid SDK location with an ANDROID_HOME environment variable or by setting the sdk.dir path in your project's local properties file at '/Users/khushsharma/awesome01/android/local.properties'.

  • @ujjawalrachhoya8972
    @ujjawalrachhoya8972 Před rokem

    when i cun npm run android it takes lots of time around 15-20 mint but at the end it simple running not loading the app
    any solution

  • @Sarvesh_Coder
    @Sarvesh_Coder Před rokem +1

    Great video sir !

  • @mazzghul
    @mazzghul Před 4 měsíci

    Hi, What's the software which you used to mirror android mobile in Mac. its really cool.
    Anybody else who knows too, please help me. I really like how he can click the android device with mouse

  • @narendermudgal
    @narendermudgal Před 8 měsíci

    do you have any video to run first app on iOS ?

  • @yogitasingla6468
    @yogitasingla6468 Před 5 měsíci

    i always get this error when opening in android studio - error Cannot start server in new window because no terminal app was specified. you just need to use npm start before run command in this case

  • @codeBUG1534
    @codeBUG1534 Před 6 měsíci

    Sir mine npx react-native run-android is taking too much time to load.
    it's my very first time learning react-native.
    How can i resolve it Sir ?

  • @LakshitAmeta
    @LakshitAmeta Před 10 měsíci

    I'm getting an error activity class does not exist I tried a lot but I'm not able to resolve it

  • @MrTarang1
    @MrTarang1 Před 7 měsíci

    Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
    > Could not determine the dependencies of null.
    > Cannot query the value of this provider because it has no value available.
    can you tell me issue when i runing android on mac this error comes @hitesh

  • @ravimahar5695
    @ravimahar5695 Před rokem +2

    🙏

  • @krawl97ing
    @krawl97ing Před rokem +1

    What's the name of the VSCode theme that you are currenltly using? :)

  • @anubhavseet004
    @anubhavseet004 Před 7 dny

    Sir it took me a day to figure out and solve the errors, but at last i was able to build the app

  • @ajith2796
    @ajith2796 Před rokem

    9:42
    Thanks 👍

  • @samuelasiabaka365
    @samuelasiabaka365 Před rokem

    I use a windows laptop and an iphone, anyway to use both?

  • @codewithroman8180
    @codewithroman8180 Před rokem

    Finaly i also solve problem from ur tutorial i love from pakistan

  • @sagar-tt4ub
    @sagar-tt4ub Před rokem

    Great video. Fortunately for me, it ran on the first go

  • @alimosbah
    @alimosbah Před rokem

    Let's start this experiment together

  • @KIKII.K
    @KIKII.K Před 5 měsíci

    i cannot connect my ios physically to the vscode instead of android. please help!

  • @me_har
    @me_har Před rokem

    to run app is Android SDK 12 is mandatory or Android SDK 13 will also work ? As Currently I am facing error
    Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

    • @me_har
      @me_har Před rokem

      thanks to you after adding path of adb in system variables I was able to run my first react native app.Thank you ❤❤

  • @faisalrahman418
    @faisalrahman418 Před rokem

    I have installed and learned angular in vscode. is there any problem in installing react also in the vscode.? or should i need to install locally instead of global ?

    • @anirudhcodes
      @anirudhcodes Před rokem

      There will be no problem I believe

    • @guptapandiri
      @guptapandiri Před rokem +3

      Hey, you don't need to install react or react native globally, you can use the npx command like npx create-react app or npx react-native init, which fetches the latest version. Anyway even if you install it globally, it won't be a problem.

  • @madhu1591
    @madhu1591 Před 7 měsíci

    I am getting blank screen on virtual device even though the build is successful. Could anyone please help to resolve it

  • @ujjawalyadav7895
    @ujjawalyadav7895 Před rokem

    I'm getting this error when I'm running npx run android Task :react-native-gradle-plugin:compileKotlin FAILED, can any one help me please

  • @kazitanim007
    @kazitanim007 Před 2 měsíci +1

    FYI: run "npm" instead of "npx" and hopefully there will be no issues if all the settings are fine.
    - npm start
    - npm run android

  • @mdmasudurrahman851
    @mdmasudurrahman851 Před 13 dny

    how can i add devices ?

  • @achyuthr9104
    @achyuthr9104 Před rokem +1

    can anyone help like how to cast my mobile screen on pc??

  • @sahilverma_dev
    @sahilverma_dev Před rokem

    I am using expo client. So will it be ok to continue or should I install React Native this way?

  • @khushsharma6470
    @khushsharma6470 Před 4 měsíci

    iits been 3 days i coudnt do it . android device not setting up.
    Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
    > Could not determine the dependencies of null.
    > SDK location not found. Define a valid SDK location
    can anyone help me

  • @shivtiwarii
    @shivtiwarii Před 5 měsíci +1

    to those who are facing the issue with the final command that starts the preview on the device, try running "npm run start" in a separate terminal and then in another terminal run "npm run android"

    • @samarththaker5051
      @samarththaker5051 Před 5 měsíci

      Thank you vey much. I could not figure out what to do.

  • @chidambarjoshi3470
    @chidambarjoshi3470 Před rokem

    Could someone help me out with this error: Could not compile settings file 'E:\ReactNative\platform-tools\Projects\MobileApp01\android\settings.gradle'.

  • @manavdobariya9755
    @manavdobariya9755 Před 5 měsíci

    I shifted to react-native CLI, since last two days,more than two hours each day spent in installation process...I got bunch of error while the same process but at the End "BUILD SUCCESSFULL" and satisfaction too...🎉☕

  • @pasidurajapaksha8925
    @pasidurajapaksha8925 Před 6 měsíci

    your ssl cetificate has expired ,having a hard time getting the discord link,

  • @sagz83
    @sagz83 Před 3 měsíci

    All worked fine but the app keeps crashing on opening in emulator as well as phone , can some one help

  • @mridulbagla
    @mridulbagla Před rokem +1

    Please help, if you can:-
    When I am building the app with cmd (npx react-native run-android), there are multiple files start downloading, in which one of them is of 188mb in size and the download speed is very slow.

    • @amirmule5333
      @amirmule5333 Před rokem

      For first time it is lengthy process and taking more time. But later on it works fine. I am talking about windows platform.

    • @HiteshChoudharydotcom
      @HiteshChoudharydotcom  Před rokem

      Thanks for helping

  • @alakhkaler664
    @alakhkaler664 Před 4 měsíci

    there is not set up video for the mac

  • @srinibaskhuntia201
    @srinibaskhuntia201 Před rokem +2

    Man, installing react native was such a pain in the ass.Finally was able to do it.

  • @The_Aesthetic_Developer
    @The_Aesthetic_Developer Před 3 měsíci

    why is your discord http and not https ?

  • @daggupativishal7078
    @daggupativishal7078 Před 10 měsíci

    Plz help
    Iam facing an error of "could not open settings generic class cache for settings file react native"

  • @sagar-ko3gb
    @sagar-ko3gb Před 9 měsíci

    how to setup for iphone

  • @elamandeep
    @elamandeep Před 8 měsíci

    In Linux, React native setup is quite easy. I too faced one error while running npx react-native init command but it was easy fix😁😁

    • @vaibhav5783
      @vaibhav5783 Před 7 měsíci

      I am facing some issue, can you give resource you referred to.

    • @vikaswakde-dj2dw
      @vikaswakde-dj2dw Před 5 měsíci

      linux users having ufair advantage

  • @lighteningbladegaming715

    Sir , when the next video will be out , eagerly waiting for that 🥺

  • @ikik790
    @ikik790 Před 5 měsíci

    iam unable to get adb --version

  • @piyush-singhania
    @piyush-singhania Před rokem

    So far with you 💌
    (will keep on posting this comment to track my progress)

  • @AmitKumar-id7fn
    @AmitKumar-id7fn Před 9 měsíci

    > Task :app:compileDebugJavaWithJavac FAILED
    i am encountering this error while running npx react-native run-android

  • @olyrajak449
    @olyrajak449 Před rokem

    my device is ln linux what can i use in the place of sdk.dir

  • @dhairyashgupta
    @dhairyashgupta Před rokem

    Sir, do I need to use another android phone or can I use my regular android phone for learning react native?
    and thank you so much for the amazing series.

  • @muhammadbilal-sd9kf
    @muhammadbilal-sd9kf Před 10 měsíci

    Can you share the Discord Server link
    the given link is not working

  • @user-vm3zc4bc7c
    @user-vm3zc4bc7c Před 6 měsíci

    Couldn't connect with discord channel need help please

  • @joelmathew716
    @joelmathew716 Před rokem

    backEnd appWrite ?

  • @yt-1161
    @yt-1161 Před měsícem

    for me it worked without needing to create "local.properties" file

  • @zuberustad9392
    @zuberustad9392 Před 10 měsíci

    react native setup in ubuntu take me alsmot 4 hrs but its worthy now ;)

  • @gaurabkhanal2923
    @gaurabkhanal2923 Před rokem

    discord link is invalid. Can someone give me latest discord link?

  • @unstoppable-ayush
    @unstoppable-ayush Před rokem +1

    error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.

    • @HiteshChoudharydotcom
      @HiteshChoudharydotcom  Před rokem +1

      Try our discord server, folks are very kind and helpful there. We will surely help you

    • @unstoppable-ayush
      @unstoppable-ayush Před rokem

      @@HiteshChoudharydotcom thanks u sir 😄
      Now problem solved, helpful peoples

  • @sreeshilck9525
    @sreeshilck9525 Před rokem +1

    How to mirror the device to laptop? 6:44

    • @mazzghul
      @mazzghul Před 4 měsíci

      +1 did you find a solution ?

  • @Coder_DhruvArora
    @Coder_DhruvArora Před 13 dny

    Nahi ho raha

  • @gaganvishwakarma6494
    @gaganvishwakarma6494 Před 3 měsíci

    I spent my whole day to solving 5:49 that error 🙂

  • @kousthubhyadavalli1077
    @kousthubhyadavalli1077 Před 6 měsíci

    unable to join discord server

  • @codingtodev
    @codingtodev Před rokem +1

    Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.
    warn Please launch an emulator manually or connect a device. Otherwise app may fail to
    launch.

  • @AtharvChaturvedi390
    @AtharvChaturvedi390 Před 6 měsíci +1

    Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
    > Could not determine the dependencies of null.
    > java.io.IOException: The filename, directory name, or volume label syntax is incorrect

    • @Wander_Lens
      @Wander_Lens Před 3 měsíci

      Im getting same error from vscode terminal, can you tell me how you resolved it

    • @AtharvChaturvedi390
      @AtharvChaturvedi390 Před 3 měsíci +1

      @@Wander_Lensuse chatgot it will help you to resolve that enter the error there

  • @saksham_1612
    @saksham_1612 Před rokem

    I am struggling to run it on my device since an hour or two and my brain is just f*ked. Please recommend me something which is more begginner friendly.

  • @pranavsivaprasad5301
    @pranavsivaprasad5301 Před rokem

    can anyone help solving the adb error for me

    • @princekumarsingh8626
      @princekumarsingh8626 Před rokem

      Start > Control Panel > System > Advanced System Settings > Environment Variables...
      In this Environment Variables window, in the User variables for (your-username) click on Path and then click Edit and paste the adb location there and then click OK.
      That worked for me.

  • @keshavabanda3420
    @keshavabanda3420 Před 11 měsíci

    adb lists not working on windows

  • @oldgangster4119
    @oldgangster4119 Před rokem

    Error I got :
    A problem occurred evaluating project ':app'.
    > Failed to apply plugin 'com.android.internal.application'.
    > Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
    Your current JDK is located in C:\Program Files\Java\jre1.8.0_311
    You can try some of the following options:
    - changing the IDE settings.
    - changing the JAVA_HOME environment variable.
    - changing `org.gradle.java.home` in `gradle.properties`.

    • @naveenb4462
      @naveenb4462 Před rokem +2

      Upgrade the Java JDK version to 11

    • @unstoppable-ayush
      @unstoppable-ayush Před rokem +1

      there is showing jre not jdk ,install latest jdk

    • @oldgangster4119
      @oldgangster4119 Před rokem

      Thanks, I upgraded the JDK and it works. Another mistake I did was SDK directory, I used one backlash \ instead of \\ two and therefore I was getting some kind of error.

  • @rishiraj2548
    @rishiraj2548 Před rokem

    Good day greetings

  • @mma-dost
    @mma-dost Před rokem

    It took me 2 days finally today I was able to run the app on android phone

    • @rahul_sidhha
      @rahul_sidhha Před rokem

      Please help me !
      I am facing the error: unknown command 'run-android'

    • @mma-dost
      @mma-dost Před rokem

      @@rahul_sidhha what is the command you are running ?

    • @rahul_sidhha
      @rahul_sidhha Před rokem

      @@mma-dost thank you for your reply .. now done 👍

    • @mma-dost
      @mma-dost Před rokem

      @@rahul_sidhha great but can you share what was the issue?

    • @rahul_sidhha
      @rahul_sidhha Před rokem

      @@mma-dost when I was run the command : npx react-native run-android
      It was showing - unknown command 'run-android'