Use arrow function for isFocused

This commit is contained in:
Brent Vatne
2018-03-12 09:56:39 -07:00
parent 4bb8987ab7
commit 8e5ee4d312

View File

@@ -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] = {