DEV Community

Claire Lu
Claire Lu

Posted on

Upgrading React Navigation 4 to 5.

Creating stack Navigation is easy, I will skip that.
I just want to mention when you are passing item id to the next detail page. navigation.getParam won't work in Nav 4.

You can change it to route.params.itemId.

Top comments (0)