diff --git a/README.md b/README.md index 00c55fe..999dd52 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +## [SOLVED]Component Unmount Error in iOS + # react-native-tabs React Native platform-independent tabs. Could be used for bottom tab bars as well as sectioned views (with tab buttons) diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..2f7efbe --- /dev/null +++ b/_config.yml @@ -0,0 +1 @@ +theme: jekyll-theme-minimal \ No newline at end of file diff --git a/index.js b/index.js index f39859f..ae344f5 100644 --- a/index.js +++ b/index.js @@ -36,8 +36,10 @@ class Tabs extends Component { } componentWillUnmount(){ - this.keyboardDidShowListener.remove(); - this.keyboardDidHideListener.remove(); + if (Platform.OS==='android') { + this.keyboardDidShowListener.remove(); + this.keyboardDidHideListener.remove(); + } } keyboardWillShow = (e) => {