|
@@ -50,7 +50,7 @@ class PushedScreen extends Component {
|
50
|
50
|
|
51
|
51
|
componentDidMount() {
|
52
|
52
|
this.listeners.push(
|
53
|
|
- this.subscription = Navigation.events().registerComponentDidAppearListener((event) => {
|
|
53
|
+ Navigation.events().registerComponentDidAppearListener((event) => {
|
54
|
54
|
if (this.state.previewComponentId === event.componentId) {
|
55
|
55
|
this.setState({ disabled: event.type === 'ComponentDidAppear' });
|
56
|
56
|
}
|
|
@@ -69,7 +69,6 @@ class PushedScreen extends Component {
|
69
|
69
|
}
|
70
|
70
|
|
71
|
71
|
componentWillUnmount() {
|
72
|
|
- this.subscription.remove();
|
73
|
72
|
this.listeners.forEach(listener => listener.remove && listener.remove());
|
74
|
73
|
}
|
75
|
74
|
|