Files
react-navigation/packages
Satyajit Sahoo f51f9c8493 feat: add helper to get focused route name from nested state (#8435)
Currently, to access the focused child screen, we need to do something like this:

```js
const routeName = route.state
  ? route.state.routes[route.state.index].name
  : route.params?.screen || 'Feed';
```

However, it doesn't handle some cases, such as when `route.state` is partial. This helper will make it easier:

```js
const routeName = getFocusedRouteNameFromRoute(route) ?? 'Feed';
```
2020-06-15 13:52:38 +02:00
..
2020-06-12 18:37:40 +02:00
2020-06-12 18:37:40 +02:00
2020-06-12 18:37:40 +02:00
2020-06-12 18:37:40 +02:00
2020-06-12 18:37:40 +02:00
2020-06-12 18:37:40 +02:00