Andr3wHur5t / react-native-keyboard-spacer

Plug and play react-native keyboard spacer view.
MIT License
1.56k stars 219 forks source link

Close keyboard by swipe down #6

Closed jvlobo closed 8 years ago

jvlobo commented 8 years ago

Hey there, great component you guys have built! thanks.

I was wondering if it'd be possible to close the keyboard when you swipe from top to bottom, as Whatsapp does.

Thanks.

Andr3wHur5t commented 8 years ago

Sorry for the latency,

This component just watches the keyboard position and size but you should be able to accomplish this effect using a iOS scroll view with keyboardDismissMode set to DismissModeInteractive.

https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIScrollView_Class/#//apple_ref/c/tdef/UIScrollViewKeyboardDismissMode

I'm unsure if this is implemented in react native ATM but I'm sure they would accept a PR.