Pass Data between two screen in React Native
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
thank you for sharing the knowledge
Thanks to this channel its hepling me a lot
I've been looking for this.. thanks for the guidance 💜💜💜💜
Thanks for your valuable feedback
thanks for the code, you help me bro..
Thank you, it helped me a lot. I wasted 3/4 hours just on this.
you solved my problem i have wasted a whole day in this consept thanks means a lot
Hello sir, is it possible in reactjs, I want checkbox data to show next screen?
hi, How to pass the data between screens using useState hooks on Button's onPress Event ?
i have the same question :(
can you change value after getting it on second screen ?
You can use useState on the second screen change value.
i got this error please help me "undefined is not an object (evaluating 'this.props.navigation.navigate') - React Native"
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
If you are using react navigation x5 then, you will be write your code like {this.props.route.params.p1}
@@hamadazam7912 u rock!!! And thank you to computer science tutor!!
Thanks computer science tutor and@@hamadazam7912 , you help me too, just curious how did you found out its using "route"
Sir, it shows the error 'params is not defined ' please fix it
same here
same here