How to get the current screen metadata in React within react-navigation?

added by JavaScript Kicks
11/4/2019 9:41:50 AM

235 Views

While using react-navigation in pair with react-native or a classic web based react app, you probably someday asked yourself: " How could I get the current route metadata such as route name ? " This is a pretty common use case, but sometimes it might get a little bit tricky and it can be difficult to find out how to deal with that.


0 comments