onKeyboardWillHide(e) {
Animated.timing(this.state.height, {
toValue: this.listViewMaxHeight,
duration: e.duration,
easing: Easing.bezier(0.1, 0.76, 0.55, 0.9)
}).start();
},
onKeyboardWillShow(e) {
Animated.timing(this.state.height, {
toValue: this.listViewMaxHeight - (e.endCoordinates ? e.endCoordinates.height : e.end.height),
duration: e.duration,
easing: Easing.bezier(0.1, 0.76, 0.55, 0.9)
}).start();
},
Created
January 14, 2016 16:49
-
-
Save jondot/1317ee27bab54c482e87 to your computer and use it in GitHub Desktop.
ios keyboard bezier
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Archive of the above link: https://web.archive.org/web/20170627051214/http://pyl.io/2015/08/17/animating-in-sync-with-ios-keyboard/