I'm trying to make a key map for all the screens.
For that, I need to extract all the keys from navigation container of react-navigation.
For example,
const result = {
MainScreen: 'Main-p-u9s_rA3z5HCT-KHyDua',
IndexScreen: 'Index-97mYyg2-P5Kb_wGY4E1ke',
<RouteName>: <RouteKey>
...
}
Is there any solution for this?