Skip to content

Commit 210b0a7

Browse files
committed
Merge pull request #48 from johannhof/master
Remove onDidFocus and onWillFocus from Router
2 parents 5399b95 + a522f96 commit 210b0a7

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

index.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ class Router extends React.Component {
4444
this.onBack = this.onBack.bind(this);
4545
this.customAction = this.customAction.bind(this);
4646
this.renderScene = this.renderScene.bind(this);
47-
this.onDidFocus = this.onDidFocus.bind(this);
48-
this.onWillFocus = this.onWillFocus.bind(this);
4947

5048
this.state = {
5149
route: {
@@ -69,15 +67,6 @@ class Router extends React.Component {
6967
});
7068
}
7169

72-
onWillFocus(route) {
73-
this.setState({ route });
74-
this.emitter.emit('willFocus', route.name);
75-
}
76-
77-
onDidFocus(route) {
78-
this.emitter.emit('didFocus', route.name);
79-
}
80-
8170
onBack(navigator) {
8271
if (this.state.route.index > 0) {
8372
navigator.pop();

0 commit comments

Comments
 (0)