Pass Data between two screen in React Native

Sdílet
Vložit
  • čas přidán 3. 05. 2020
  • Hello Friends
    In this tutorial video, I will explain you how to Pass Data between two screen in React Native step-by-step .
    The following four steps are used to implement it
    1. Create Screen1.js which is used to take input From User.
    2. Create Screen2.js file which is used to display the value.
    3. Create App.js file which contain the code for navigation
    4. Set parameter in Screen1.js and get Parameter in Screen2.js
    #react #reactnative #reactnativetutorial
    If you like this video or have any suggestion, please write it into the comment section.
    WebSite www.computersciencetutorial.com/
    Facebook / computersciencetutorialss
    Twitter / cs_tutorial
    Raddit / cstutorial
    Tumbler / computersciencetutorial
    Instagram / computersciencetutorial
    Linkedin / computersciencetutorial
    VK computersciencetutorial
  • Věda a technologie

Komentáře • 21

  • @kodigudlasreenu8602
    @kodigudlasreenu8602 Před 4 lety +1

    thank you for sharing the knowledge

  • @niteeshsatyapu104
    @niteeshsatyapu104 Před 3 lety +1

    Thanks to this channel its hepling me a lot

  • @rimsha4519
    @rimsha4519 Před 3 lety

    I've been looking for this.. thanks for the guidance 💜💜💜💜

  • @jhonrion8263
    @jhonrion8263 Před 3 lety +1

    thanks for the code, you help me bro..

  • @subashshrestha455
    @subashshrestha455 Před 3 lety

    Thank you, it helped me a lot. I wasted 3/4 hours just on this.

  • @keziahdavid3187
    @keziahdavid3187 Před 2 lety

    you solved my problem i have wasted a whole day in this consept thanks means a lot

  • @venub269
    @venub269 Před 2 lety

    Hello sir, is it possible in reactjs, I want checkbox data to show next screen?

  • @rg-du4ou
    @rg-du4ou Před 4 lety +1

    hi, How to pass the data between screens using useState hooks on Button's onPress Event ?

  • @yashvardhansinghrathore8910

    can you change value after getting it on second screen ?

    • @marvinfok65
      @marvinfok65 Před rokem

      You can use useState on the second screen change value.

  • @rajeshanupoju8786
    @rajeshanupoju8786 Před 4 lety +2

    i got this error please help me "undefined is not an object (evaluating 'this.props.navigation.navigate') - React Native"

    • @ComputerScienceTutorial
      @ComputerScienceTutorial  Před 4 lety

      Have You install the following packages for navigation
      Package required for React Native Navigation
      1. npm install react-navigation --save
      2. npm install react-native-gesture-handler --save
      3. npm install react-navigation-stack --save
      run these command one by one at terminal. make sure internet is ON

    • @hamadazam7912
      @hamadazam7912 Před 3 lety +3

      If you are using react navigation x5 then, you will be write your code like {this.props.route.params.p1}

    • @marleymunoz5192
      @marleymunoz5192 Před 3 lety +1

      @@hamadazam7912 u rock!!! And thank you to computer science tutor!!

    • @depechemode579
      @depechemode579 Před 3 lety

      Thanks computer science tutor and@@hamadazam7912 , you help me too, just curious how did you found out its using "route"

  • @geniuspedia9508
    @geniuspedia9508 Před 3 lety

    Sir, it shows the error 'params is not defined ' please fix it