Skip to content

Commit

Permalink
Check before deleting listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
nkhadka committed May 11, 2017
1 parent 0308af5 commit 83b34d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ class Tabs extends Component {
}

componentWillUnmount(){
if(this.keyboardDidHideListener) {
this.keyboardDidShowListener.remove();
this.keyboardDidHideListener.remove();
}
}

keyboardWillShow = (e) => {
Expand Down

0 comments on commit 83b34d2

Please sign in to comment.