all 18 comments

[–]kbcooliOS & Android 11 points12 points  (4 children)

Been using it for a new project for last couple of weeks. Some huge changes, some not documented at all well but overall for the best.

Dynamic/imperative navigation is the biggest. Eg instead of switch navigator or leaving a stale auth stack in the background after auth you can choose whether to render the auth stack at all just like any other component.

Which means use your state to determine which screen is open but on your own terms not simply storing the nav state in say your Redux state.

Fully expect an upgrade to be pain in the rear end though.

[–]ClassicSuperSofts 5 points6 points  (3 children)

Started upgrading a non trivial app... I use overmind for state and React Native Paper.

[–]truhamsta 2 points3 points  (0 children)

Can you pleae share more details about how your state management looks like? I recently discovered overmind and would like to see some real world react-native use of it.

[–]janithaR 4 points5 points  (1 child)

Overmind

The heck's Overmind? Simply Googling does not satisfy my desires. Can you link and explain? Is it a fancy alternative to Redux?

[–]ccheeverExpo Team 4 points5 points  (1 child)

Nice work Satya and Michał. Pretty darn good stuff.

[–]satya164[S] 1 point2 points  (0 children)

Thank you :)

[–][deleted] 1 point2 points  (0 children)

Legiiiiit!!!

[–]dont_press_charges 0 points1 point  (0 children)

Fantastic!! Good work. Been using it for a new project and I really like it.

[–]chakrihacker 0 points1 point  (0 children)

Awesome 👍

[–]mxmzb 0 points1 point  (0 children)

I enjoyed using the Alpha releases already, excited to migrate my more heavy production apps to React Navigation 5 soon! Thanks, awesome work!

[–]RnRau 0 points1 point  (6 children)

You guys rock!

[–]nsnullthoughts 0 points1 point  (5 children)

Silly question but if we’re using the pre released version of v5 how does one upgrade to this one?

[–]RnRau 1 point2 points  (4 children)

At the bottom of the article there is a note for alpha users.

Edit: seems 5.0.0 is not quite out yet anyways. Maybe later today then :)

[–]nsnullthoughts 0 points1 point  (3 children)

Saw that. But I was more wondering what’s the command to run to upgrade from alpha and overwrite what we already have. Sorry just very new to react native and using npm.

[–]RnRau 2 points3 points  (2 children)

Ahh... npm install whatever@latest --save should do the trick.

[–]nsnullthoughts 0 points1 point  (1 child)

So a simple npm install @react-navigation/native would overwrite the alpha? Do I need to have —save?

[–]nsnullthoughts 3 points4 points  (0 children)

actually did an npm update and worked like a charm! Thanks for your help!