React-Navigation 5 - Passing values between screens

I was used to getParam in Navigation 4 to pass values between screens, now I’m a bit lost in version 5. I made an Expo Snack to better understand the problem I’m having: Navigation 5 - passing values - Snack

In case the snack is not clear, I would like to pass the topic’s value from Screen1 to Screen2.

Thanks!

You can access params with props.route.params

https://reactnavigation.org/docs/en/upgrading-from-4.x.html#separate-route-prop

Thanks satya164 for your reply. Actually, the problem was due to me forgetting the curly brackets here: function MyScreen2({route, topic})