mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-13 09:39:18 +08:00
Use arrow function for isFocused
This commit is contained in:
@@ -53,7 +53,7 @@ function createNavigator(NavigatorView, router, navigationConfig) {
|
||||
dispatch,
|
||||
state: route,
|
||||
addListener: this.childEventSubscribers[route.key].addListener,
|
||||
isFocused: this._isRouteFocused.bind(this, route),
|
||||
isFocused: () => this._isRouteFocused(route),
|
||||
});
|
||||
const options = router.getScreenOptions(childNavigation, screenProps);
|
||||
descriptors[route.key] = {
|
||||
|
||||
Reference in New Issue
Block a user