Skip to content

Commit

Permalink
Update lifecycle hooks to support React 16.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ardaogulcan committed May 29, 2018
1 parent 2972ff0 commit 74324c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/KeyboardAccessoryView.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class KeyboardAccessoryView extends Component {
this.handleKeyboardHide= this.handleKeyboardHide.bind(this);
}

componentWillMount () {
componentDidMount () {
const keyboardShowEvent = Platform.OS === 'ios' ? 'keyboardWillShow' : 'keyboardDidShow';
const keyboardHideEvent = Platform.OS === 'ios' ? 'keyboardWillHide' : 'keyboardDidHide';

Expand Down

0 comments on commit 74324c9

Please sign in to comment.