Created
May 10, 2017 12:55
-
-
Save xxjinwei/8aa6b9a219e650c5011ce90159d7ac3a to your computer and use it in GitHub Desktop.
get keyboard height
This file contains 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
import { Keyboard, Dimensions } from 'react' | |
let KEYBOARD_HEIGHT = 0 | |
Keyboard.addListener('keyboardDidChangeFrame', function ({ endCoordinates }) { | |
KEYBOARD_HEIGHT = DIMENSION.height - endCoordinates.screenY | |
}) |
Author
xxjinwei
commented
May 13, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment