Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- componentDidMount() {
- this.keyboardDidShow = Keyboard.addListener(
- 'keyboardDidShow',
- this.keyboardDidShow
- );
- this.keyboardWillShow = Keyboard.addListener(
- 'keyboardWillShow',
- this.keyboardWillShow
- );
- this.keyboardWillHide = Keyboard.addListener(
- 'keyboardWillHide',
- this.keyboardWillHide
- );
- }
- keyboardDidShow = () => {
- this.setState({ searchBarFocused: true });
- };
- keyboardWillShow = () => {
- this.setState({ searchBarFocused: true });
- };
- keyboardWillHide = () => {
- this.setState({ searchBarFocused: false });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement