FaridSafi / react-native-gifted-form

📝 « One React-Native form component to rule them all »
MIT License
1.44k stars 214 forks source link

In long forms keyboard is dismissed when focus on bottom fields #101

Open vcalvello opened 7 years ago

vcalvello commented 7 years ago

This should probably has to do with the scroll keyboardDismissMode="on-drag" in the ScrollView and the scroll to input behavior.

To reproduce this, try adding a couple of items to the example form (making sure you have some inputs below the viewport), scroll the form and click in one of those inputs. Thus, the keyboard will appear and then disappear right away.

vmf91 commented 6 years ago

I had this problem and I solved it with the GiftedForm inside an ScrollView like this:

<ScrollView
  automaticallyAdjustContentInsets={false}
  keyboardShouldPersistTaps={'always'}
  style={{flex:1}}>