You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a function and calling it onKeyUpListener. I'm removing the listener in componentWillUnmount.
My code is below: componentDidMount(){ KeyEvent.onKeyUpListener((keyCode) => { if(keyCode == '67'){ this.handleBackSpace(); } }); }
and
I have a function and calling it onKeyUpListener. I'm removing the listener in componentWillUnmount.
My code is below:
componentDidMount(){ KeyEvent.onKeyUpListener((keyCode) => { if(keyCode == '67'){ this.handleBackSpace(); } }); }
and
componentWillUnmount() { KeyEvent.removeKeyUpListener(); }
This causing issue on other screens. Actually, Listener is not removing.
The text was updated successfully, but these errors were encountered: