react-navigation-auth-flow icon indicating copy to clipboard operation
react-navigation-auth-flow copied to clipboard

imcompatible with navigation v3

Open gotexis opened this issue 6 years ago • 4 comments

Seems like navigation v3 has introduced some global app-container that must be declared explicitly so it broke the current implementation.

gotexis avatar Dec 05 '18 04:12 gotexis

That's good to know. I haven't used React Navigation v3 yet. Do you have a link to an upgrade guide?

spencercarli avatar Dec 06 '18 15:12 spencercarli

Hey

Looks like there wasnt an official one, but below seems to be pretty detailed. medium

There's not a lot of breaking changes, but the main problem I found was that there need to be an explicit top-level wrapper imported from React-navigation now so whever used to be RootStack, now needs to be createAppContainer(RootStack). Seems like navigation steps are being stored into that top level container.

But then this confuses me how to set up redux. I think I've then wrapped the createAppContainer in a Store/Provider tag and it seemed to work. Only I hope that the props can propagate correctly, haven't tested.

I am a newcomer to react-native and the fact that React core functions (Redux, redux-saga, react-navigation, and even "Expo") are provided by separate groups of people is giving me aids....

gotexis avatar Dec 06 '18 22:12 gotexis

Did anyone come up with a commit for this update?

patricktargun avatar Jan 15 '19 19:01 patricktargun

https://reactnavigation.org/docs/en/auth-flow.html

dakzh avatar Jan 30 '19 22:01 dakzh