Skip to content

Commit c39ec7a

Browse files
committed
Use arrow function instead of bind
1 parent 0ff3347 commit c39ec7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/views/CardStack/CardStack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class CardStack extends React.Component {
129129
const screenNavigation = addNavigationHelpers({
130130
dispatch: navigation.dispatch,
131131
state: scene.route,
132-
isFocused: this._isRouteFocused.bind(this, scene.route),
132+
isFocused: () => this._isRouteFocused(scene.route),
133133
addListener: this._childEventSubscribers[scene.route.key],
134134
});
135135
screenDetails = {

src/views/Drawer/DrawerView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export default class DrawerView extends React.PureComponent {
108108
this._screenNavigationProp = addNavigationHelpers({
109109
dispatch: navigation.dispatch,
110110
state: navigationState,
111-
isFocused: this._isRouteFocused.bind(this, navigationState),
111+
isFocused: () => this._isRouteFocused(navigationState),
112112
addListener: this._childEventSubscribers[navigationState.key],
113113
});
114114
};

0 commit comments

Comments
 (0)