Use arrow function for isFocused

This commit is contained in:
Brent Vatne
2018-03-12 09:56:39 -07:00
parent 309eba350a
commit e871d36942

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