React Native Tutorial #22 - Passing Data Between Screens

preview_player
Показать описание
Hey gang, in this React Native tutorial we'll see how to pass data between screens when navigating from one to another (in our case from Home to Review Details).
----------------------------------------

🐱‍💻 🐱‍💻 Course Links:

🐱‍💻 🐱‍💻 Other Related Courses:

Рекомендации по теме
Комментарии
Автор

const [reviews, setReviews] = useState([
{ title: 'Zelda, Breath of Fresh Air', rating: 5, body: 'lorem ipsum', key: '1' },
{ title: 'Gotta Catch Them All (again)', rating: 4, body: 'lorem ipsum', key: '2' },
{ title: 'Not So "Final" Fantasy', rating: 3, body: 'lorem ipsum', key: '3' },
]);

nikulasoskarsson
Автор

Everytime I have to learn something, one of your tutorials saves the day

rushtothemax
Автор

Hey man, Thank you for this tutorial. Helped a lot..!
I request all viewers to support the video that helps you in any way. There are more viewers who might need to see these videos.
Best Regards..!
Cheers to all devs

sudonitin
Автор

this is one of the best channel on youtube. keep it up

_wise_one
Автор

This method still works with Drawer Navigation, or atleast that was the only way I found to pass params between screens. Using route.params would be "undefined" and crash the app. So thank you for this video!

mv
Автор

the best video tutorial i have ever watched !! <3 respect !!

alirezaesbati
Автор

Little update for React Navigate 5:

export default function ReviewDetails({ route, navigation }) {

const { title, rating, body } = route.params;
return(
<View
<Text>
{JSON.stringify(title)}
</Text>
<Text>
{JSON.stringify(rating)}
</Text>
<Text>
{JSON.stringify(body)}
</Text>
</View>
)
}

uxninjaa
Автор

Really good work.. And the way of explanation.. Amazing

amaadali
Автор

Really good videos, this is exactly what i wanted, many thanks

AzoltoFire
Автор

Thank you so much for these videos, help me a lot!

yolandajoseribasbastidas
Автор

Thank you so much, really appreciate your work

sajidjabbar
Автор

Nice, This helped me in my project, thanks alot.

muhdibee
Автор

Shaun Hello! Your content is awesome =) keep up a good job! Just a lil question. Is it possible in near future u will make an updated Angular content?

Crosfake
Автор

Great Job. My problem is resolved. Thanks!!!

juliocesarmontanha
Автор

Smash the like button. He really deserves.

paristar
Автор

traversy media and net ninja you are the best fantastic men !

abeprangishvili
Автор

Great tutorial, I have a query, can we update route.params which we had received from screen 1 and then the updated (using <Modal />) one send to next screen??

mayursarode
Автор

For those who are working with a more updated navigation

export default function ReviewDetails({ route, navigation }) {
const { item } = route.params;

return (
<View
<Text>{item.title}</Text>
</View>
);
}

learnedcurve
Автор

Please do a series on React navigation 5.x.

tanujnamdeo
Автор

Hey, when you want to do a flatlist, followed by another flatlist after chosing a item, how do you do that?

JoaoPereira-txib