Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentWillUnmount() {
super.componentWillUnmount();
RX.Input.backButtonEvent.unsubscribe(this._onBack);
RX.Input.keyUpEvent.unsubscribe(this._onKeyUp);
}
componentDidMount() {
super.componentDidMount();
RX.Input.backButtonEvent.subscribe(this._onBack);
RX.Input.keyUpEvent.subscribe(this._onKeyUp);
}