Last active
May 7, 2018 11:28
-
-
Save kaueDM/1186d0235499955a1b72cfb1d971793f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//ComponentDidMount | |
this.keyboardDidShowListener = Keyboard.addListener('keyboardDidShow', this._keyboardDidShow) | |
this.keyboardDidHideListener = Keyboard.addListener('keyboardDidHide', this._keyboardDidHide) | |
//Keyboard handlers | |
_keyboardDidShow = () => { | |
return this.setState({ logoOpacity: 0, addPaddingBottom: true }) | |
} | |
_keyboardDidHide = () => { | |
return this.setState({ logoOpacity: 1, addPaddingBottom: false }) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment