Run React Native App on Real Device

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024
  • Hello Friends
    In this tutorial video, We will learn how to run React Native App on the real device.The following steps are used to run React Native app on real device:-
    1. Create React Native App
    2. Open App folder in Visual Studio Code
    3.Type the Code for App
    4. Configure Real Device/Mobile
    5. Run React Native App
    #react #reactnative #reactnativetutorial
    If you like this video or have any suggestion, please write it into the comment section.
    WebSite www.computersci...
    Facebook / computersciencetutorialss
    Twitter / cs_tutorial
    Raddit / cstutorial
    Tumbler / computersciencetutorial
    Instagram / computersciencetutorial
    Linkedin / computersciencetutorial
    VK compute...

Комментарии • 120

  • @itgurukul
    @itgurukul 4 года назад +3

    Setting IP Address I have some doubt. Do we need to setup same IP what you are showing 10.0.2.2:80. is it fixed?
    How to find which IP to setup exactly?
    If i connected multiple devices through USB. how to manage, do we need to setup multiple IP address?

  • @anupkaushik9370
    @anupkaushik9370 2 года назад +4

    why you used emulator first and later connected to real device ? you could either used emulator or Real device .
    it is showing error message :
    emulator -avd MyAVD
    emulator : The term 'emulator' is not recognized as the name of a
    cmdlet, function, script file, or operable program. Check the
    spelling of the name, or if a path was included, verify that the
    path is correct and try again.
    please suggest the cause and solution for it

  • @umermujtaba5529
    @umermujtaba5529 10 месяцев назад +1

    how to change it back because now my app is not running on android studio emulator.

  • @jdcrunchman999
    @jdcrunchman999 Год назад

    Where can I find a tutorial showing how fo use React with BLE on a Mac and iPhone?

  • @mkusasakala3861
    @mkusasakala3861 4 года назад +8

    What's the point of opening the emulator if you are going to use your physical device? What if I don't have an emulator installed, does it mean I can't use my phone ?

    • @ranausama8253
      @ranausama8253 3 года назад

      no you can use your phone as he mentioned in his video he is running his code on both avd and real device you can do the same bro

    • @minecraftcufanii7580
      @minecraftcufanii7580 2 года назад

      I'm guessing for a first test is recommended to use an emulator. After you are convinces it works well, you can deploy it to a proper android device

  • @bismibarakath7827
    @bismibarakath7827 4 года назад +3

    You have not mentioned, how the AVD is available. AVD is not part of Visual studio code. It is part of Android studio. Android studio needs to be installed. Please make complete video

    • @seaorz
      @seaorz 4 года назад +1

      Can you clarify why we need AVD, if we want it to run physical device?

    • @ComputerScienceTutorial
      @ComputerScienceTutorial  4 года назад

      We can run on real device also. I also share a video for the same.
      plz watch it

    • @mubarrabarro6892
      @mubarrabarro6892 4 года назад

      @@ComputerScienceTutorial sir you did not discuss about AVD..????

    • @ComputerScienceTutorial
      @ComputerScienceTutorial  4 года назад +1

      Yes I also create a tutorial for how to run app on AVD.
      In my first video I explain how to create AVD and in second video I explain how to run app on AVD.
      If you have still any doubt, plz share with me

    • @ComputerScienceTutorial
      @ComputerScienceTutorial  4 года назад +1

      Some times we does not want to test app on real device due to so many reason
      1. App install on device and consume space.
      2. Security issue
      3. Crash of Android OS
      4. Virus etc.
      In my case I preferred avd as I have to show output to my viewers
      Thanks for sharing yr views

  • @andrewsmichael416
    @andrewsmichael416 3 года назад +6

    Thanks for your effort to uploading this video but many steps are still missing, how did you setup the emulator name and what path is the emulator suppose to be set in order for vscode to understand it, I have followed the steps you pointed out but still getting error from vscode while with the emulator command not recognized

  • @kavibharathik2294
    @kavibharathik2294 2 года назад

    mobile oda connect pannum pothu adb devices nu kududa theyva illaiya sir

  • @teamarceus7077
    @teamarceus7077 5 лет назад +2

    Hey there thanks !
    IVe one issue
    emulator -avd myavd is working fine on CMD but when i run it on VScode terminal it shows this :
    emulator : The term 'emulator' is not recognized as the name of a cmdlet, function, script
    file, or operable program. Check the spelling of the name, or if a path was included, verify
    that the path is correct and try again.
    At line:1 char:1
    + emulator -avd myavd
    + ~~~~~~~~
    + CategoryInfo : ObjectNotFound: (emulator:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

    • @ComputerScienceTutorial
      @ComputerScienceTutorial  5 лет назад +1

      Please check the path of emulator folder. Every path must be separated by semi colon.

    • @teamarceus7077
      @teamarceus7077 5 лет назад

      @@ComputerScienceTutorial Done !! Thanks man
      Do i need to run emulator everytime and add host ip address everytime whenever i want to run on real device?

    • @ahmedsahir3988
      @ahmedsahir3988 4 года назад

      some error !!! any help ?

    • @andrewsmichael416
      @andrewsmichael416 3 года назад

      @@ComputerScienceTutorial Please what path is this and how do I find the emulator path, kindly make the explanation clear

  • @nrb640
    @nrb640 11 месяцев назад

    Thanks a lot man. you are a genius

  • @madhubabumalli6034
    @madhubabumalli6034 3 года назад

    do we need emulator for sure, even want to run the app in real android device?

  • @awaiszaki14
    @awaiszaki14 4 года назад +1

    Should I use the same ip address as you write?

  • @hellochinnoda
    @hellochinnoda Год назад

    Thanks you your video is very usefull to me .....🤝😍

  • @amandubey1103
    @amandubey1103 3 года назад +1

    Tip watch from 7:11
    Btw helpful video🙏

  • @raghu8898
    @raghu8898 3 года назад

    Hi sir if u dont mine can u tell how to connect my phone to Android studio

  • @gladiumcaeli
    @gladiumcaeli 5 лет назад +12

    Thank you so much professor, you're a lifesaver.

  • @hammadahmed5917
    @hammadahmed5917 5 лет назад +1

    my node server is not working when i start the project. help me out..

  • @vipul5529
    @vipul5529 4 года назад

    Can you tell me how to enable hot reloading feature in real device( save the changes and the output changes automatically)?

    • @ComputerScienceTutorial
      @ComputerScienceTutorial  4 года назад

      @Vipul Tyagi Just shake the Mobile left and right

    • @vipul5529
      @vipul5529 4 года назад

      @@ComputerScienceTutorial Hey, please tell me one more thing. Can I go ahead without installing android sdk. Because my laptop is not that good in terms of speed. It is quad core i3+8 gb RAM. Someone told me that I don't need android studio but I don't know about android sdk.

  • @muhsinabbas3655
    @muhsinabbas3655 3 года назад

    sir how to show the real device on the desktop secreens

  • @mywayofliving8011
    @mywayofliving8011 3 года назад

    i got error when i run the command react-native init appname

  • @saimahmad4302
    @saimahmad4302 4 года назад

    How to find avd name??...I am not sure if I am typing it correctly .....but its showing me error "emulator : The term 'emulator' is not recognized as the name of a cmdlet"

    • @ComputerScienceTutorial
      @ComputerScienceTutorial  4 года назад

      this error generate due to wrong path of emulator in environment variable
      first you have to correct it.
      after that you can type following command in terminal window to display the list of emulator or Mobile connected with yr PC.
      adb device

  • @braker37
    @braker37 4 года назад +2

    02:31 - packages are installed

  • @komaradevaraj1904
    @komaradevaraj1904 3 года назад

    Last step run-android in new terminal .....it's showing error......and metro build is also not running

    • @ComputerScienceTutorial
      @ComputerScienceTutorial  3 года назад

      Is node js command window is open or closed automatically?
      If yes follow it
      ruclips.net/video/23EKDB2i0JI/видео.html

    • @komaradevaraj1904
      @komaradevaraj1904 3 года назад

      Ya nodejs window is open but after that it's showing error like failed to install the app. Make sure u have the android development environment setup

  • @robiberhe4982
    @robiberhe4982 4 года назад

    How can I build gardle to run in node js please make anyone to know for this issue

  • @yahyahajji1159
    @yahyahajji1159 4 года назад +1

    hey sir i have a problem in app install debug
    i need some help please

  • @AtiullahKhan
    @AtiullahKhan 3 года назад

    'emulator' is not recognized as an internal or external command,
    operable program or batch file..
    How can i resolve it?

  • @chethansuvarna5719
    @chethansuvarna5719 2 года назад

    Once install react than php program executing write

  • @jeganmaharajan6702
    @jeganmaharajan6702 4 года назад +1

    Please do not upload partial video. you are missing many things ...where do you get the IP address ? where i can get the avd name ? how to install avd ?

    • @ComputerScienceTutorial
      @ComputerScienceTutorial  4 года назад

      thanks for sharing your issues. All these issue has been covered in first Video .
      emulator IP is like 127.0.0.1 of our PC

  • @nischalshakya5428
    @nischalshakya5428 4 года назад

    Hello sir, my vscode terminal is not gonna accept to your cmd command which is emulator -avd MyAVD.......
    What can I do?????
    sir plz reply my qn....
    Thank you 🙏🙏🙏
    🇳🇵🇳🇵🇳🇵🇳🇵🇳🇵🇳🇵🇳🇵🇳🇵

    • @ComputerScienceTutorial
      @ComputerScienceTutorial  4 года назад +1

      You have to verify the path of emulator. If you have still problems, share your team viewer or any desk id

    • @andrewsmichael416
      @andrewsmichael416 3 года назад

      Please I am facing the same issue how did you solve it

  • @shebeeradimaly6125
    @shebeeradimaly6125 2 года назад

    Will u provide functional components tutorials

  • @SonuRaj-er1hn
    @SonuRaj-er1hn 4 года назад

    In my system not working :
    react-native run-android
    It gives build failed
    could not initialize class org.codehaus.groovy.runtime.invokerhelper

    • @sanjaimahalingan377
      @sanjaimahalingan377 4 года назад

      Check your gradle version in cmd and go to
      "[Your Project]\android\gradle\wrapper\gradle-wrapper.properties" this file edit as ...(upgrade gradle version)

  • @dinukabandara6693
    @dinukabandara6693 Год назад

    how to find avd name? how the hell will we know it?

  • @mukiibipeter07
    @mukiibipeter07 3 года назад

    Since when does real device mean "Emulator"

  • @nithyaramachandran1495
    @nithyaramachandran1495 4 года назад

    Hi.. I have completed all the steps described in the setup and im stuck at a point where the application is not getting installed in the emulator device.
    react-native run-android
    info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
    Jetifier found 960 file(s) to forward-jetify. Using 4 workers...
    After this nothing happens

  • @MrAvelino2010
    @MrAvelino2010 4 года назад

    when I run the comand launch automatically the emulator but I want run in device

  • @srisayeekathiravan8236
    @srisayeekathiravan8236 2 года назад

    is adding that ip address with port num important for running it on our device

  • @ampomahwinston3436
    @ampomahwinston3436 3 года назад

    can you share that app

  • @tirthbhavsar8138
    @tirthbhavsar8138 4 года назад

    whenever i type command emulator -avd myAVD there will be a notification that fail to built app error Failed to install the app. Make sure you have the Android development environment set up: reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details. Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort

    • @sooraj111
      @sooraj111 4 года назад

      same problem... any solution?

    • @MM-vr8rj
      @MM-vr8rj 4 года назад

      same did you solve it?

  • @biswanathbanik
    @biswanathbanik 4 года назад

    what should be the machine configuration and is there any android studio required?

    • @ComputerScienceTutorial
      @ComputerScienceTutorial  4 года назад +2

      you should have
      8gb RAM
      i5 Processor
      Graphics card.
      you can run on low configuration also. in such case run your app on real device instead of AVD

  • @sanjaimahalingan377
    @sanjaimahalingan377 4 года назад

    Thank for this guide.. i have iPhone, is it possible to connect to my Windows laptop.

  • @megamandave1
    @megamandave1 2 года назад

    not helpful due to missing installation/configuration of AVD

  • @amirabenyahia1902
    @amirabenyahia1902 3 года назад

    Hey , how did you know the IP address to debug service host and host for device ?

  • @elhadjiidrissadiop5909
    @elhadjiidrissadiop5909 4 года назад +1

    Smooth explanation , one of the bes teacher over internet, Thank You sir , please do more video about React native App like How to create a delivery app ;)

  • @amardeepSingh9312
    @amardeepSingh9312 4 года назад

    what are you system specs ?

  • @rakeshranjan2276
    @rakeshranjan2276 2 года назад +1

    babaa you have to explaine every thing

  • @omkarpabe7780
    @omkarpabe7780 2 года назад

    i dont have an avd

  • @shubhamjain2616
    @shubhamjain2616 3 года назад

    Bro can you make the same video for IOS device. We are facing lots of issues running the react-native app on iPhone. Or can you help me with that?

  • @dhyeyrajpara9183
    @dhyeyrajpara9183 4 года назад

    this video is very useful
    but one issue on my program
    emulator : The term 'emulator' is not recognized as the name of
    a cmdlet, function, script file, or operable program. Check the
    spelling of the name, or if a path was included, verify that
    the path is correct and try again.
    At line:1 char:1
    + emulator -avd MyAVD
    + ~~~~~~~~
    + CategoryInfo : ObjectNotFound: (emulator:String)
    [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    pls tel me how to solve this error

  • @dhaval1039
    @dhaval1039 5 лет назад +1

    Very helpful for beginners. Thanks

  • @soniclickadbox8646
    @soniclickadbox8646 3 года назад +1

    Thank You very much such a nice tutorial

  • @shivisharma4598
    @shivisharma4598 3 года назад

    From where can i get ip address and port of adb devices?

  • @TDhanunjay
    @TDhanunjay 4 года назад

    how to know the avd name?

  • @shebeeradimaly6125
    @shebeeradimaly6125 2 года назад

    Super

  • @imrahuldasgupta
    @imrahuldasgupta 3 года назад

    Didn't work, instead it open emulator automatically 🤦‍♂️

    • @ComputerScienceTutorial
      @ComputerScienceTutorial  3 года назад

      Plz check the driver software of mobile and ensure that it is properly connected.
      If having still issue , share any desk id

  • @GujaratiSafar
    @GujaratiSafar 2 года назад

    Great explain, thanks sir

  • @review.masahiro
    @review.masahiro 4 года назад

    please change your Tittle. we are confuse a lot.

  • @Dabayare
    @Dabayare 3 года назад

    If you don't have wires or don't get it, try using Expo app as long as you are on the same local wifi internet.

    • @JoyYambasu-ho7lx
      @JoyYambasu-ho7lx Год назад +1

      Expo app is a trash it doesn't handle some Dependencies

  • @Dizzymack1
    @Dizzymack1 3 года назад

    Ayeee thank you

  • @gokulnathd3795
    @gokulnathd3795 3 года назад

    Really helpful! Thanks a lot!!

  • @nimitarora2639
    @nimitarora2639 4 года назад +1

    Awesome Video
    Very helpful.
    Thank You!!!

  • @er.sumankumar6856
    @er.sumankumar6856 3 года назад

    please solve this problem ::::: error Failed to install the app. Make sure you have the Android development environment set up: reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
    Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

  • @fatmakocman8103
    @fatmakocman8103 Год назад

    çok çokk teşekkürler🥰

  • @ramsir011
    @ramsir011 3 года назад

    thank you so much for this video

  • @longnhu327
    @longnhu327 3 года назад

    nice tutorial

  • @kavibharathik2294
    @kavibharathik2294 2 года назад

    npx package is not using in react

  • @selva4342
    @selva4342 4 года назад

    thanks you..

  • @AqibAli-lo9tz
    @AqibAli-lo9tz 3 года назад

    video sahi tittle sy banaya karo

  • @tugaybaslk5158
    @tugaybaslk5158 4 года назад +1

    Taşşağına Kurbannnn :)

  • @tabishadnan9132
    @tabishadnan9132 3 года назад

    Awesome

  • @USSCallister-up
    @USSCallister-up 4 года назад

    start at 10:00