hepter/react-native-modal-selector-searchable

Need support for KeyboardAvoidingView

Opened this issue · 1 comments

In iOS, keyboard hides the cancel button which is at the bottom of the list. This needs to be fixed by supporting KeyboardAvoidingView. In Android, It works fine already.

kahx commented

Hey, you can add yourself KeyboardAvoidingView to index.js

return (
  <Overlay {...overlayProps}>
    <View style={[styles.overlayStyle, overlayStyle]}>
        <KeyboardAvoidingView
            behavior={Platform.OS === "ios" ? "padding" : "height"}
            keyboardVerticalOffset={Platform.select({ios: 10, android: 0})}
        >
          <View
              ...