Closed
Description
ScrollView bounces on input focus when using KeyboardAvoidingView when the following props used on ScrollView:
iOS only
automaticallyAdjustContentInsets={true}
contentInsetAdjustmentBehavior={'always'}
Full snippet:
<KeyboardAvoidingView
keyboardVerticalOffset={100}
style={[styles.container, {flex: 1,
}]}
behavior={Platform.select({ ios: 'padding', android: undefined })}
>
<ScrollView
automaticallyAdjustContentInsets={true}
contentInsetAdjustmentBehavior={'always'}
>
<TextInput style={{ height: 40, borderColor: 'gray', borderWidth: 1 }} />
</ScrollView>
</KeyboardAvoidingView>
Snack:
https://snack.expo.io/@arled/keyboardavoidview-bounce-on-input-focus