mirror of
https://github.com/status-im/react-navigation.git
synced 2025-02-24 09:08:15 +00:00
Fix _isRouteFocused so it takes a route and returns bool rather than fn
This commit is contained in:
parent
e5d8d2c216
commit
e5e434c9e2
@ -25,7 +25,7 @@ function createNavigator(NavigatorView, router, navigationConfig) {
|
||||
Object.values(this.childEventSubscribers).map(s => s.removeAll());
|
||||
}
|
||||
|
||||
_isRouteFocused = route => () => {
|
||||
_isRouteFocused = route => {
|
||||
const { state } = this.props.navigation;
|
||||
const focusedRoute = state.routes[state.index];
|
||||
return route === focusedRoute;
|
||||
|
Loading…
x
Reference in New Issue
Block a user