DEV Community

loading...

Discussion on: Welcome Thread - v44

Collapse
erinoggz profile image
erinoggz

Hello Chris. I'm having a hard time learning react native but I love it so much. I'm really interested in it.

Thread Thread
chrisachard profile image
Chris Achard

It can be tricky for sure... what are you having the most trouble with?

Thread Thread
erinoggz profile image
erinoggz

The Use of props in multiple pages and the navigation systems. Most tutorials I have on navigation are using a very old version.

Thread Thread
chrisachard profile image
Chris Achard

Ah yes, that can get tricky. I tend to use Redux (or something else) for that - but yeah, it can be frustrating when tutorials are out of date (libraries move so fast!)

Thread Thread
erinoggz profile image
erinoggz

Exactly. I've stopped learning it for a week now because I don't know what to do. So u said redux will solve my props problem right ?

Thread Thread
chrisachard profile image
Chris Achard

I would actually probably suggest using Context to start - it's built in to react now, and there isn't as much learning curve as redux (learning redux can be really tricky!).

So yeah, I would look into using context to share data across an app.

If you're just talking about launching a new react native screen with props though - then that can be accomplished with react navigation. It sounds like that's what you're having trouble with, but it also may just be worth it for you to get that working first (since you don't have to use anything else to get that working).

Thread Thread
erinoggz profile image
erinoggz

Okay Chris thank you so much for your time and help. I'll check that out asap 😎

Thread Thread
bernardbaker profile image
Bernard Baker

I would also suggest looking into the Context API + Hooks useContext().

Really straight forward to get started.

Thread Thread
erinoggz profile image
erinoggz

Okay Bernard thanks for your contribution