我使用KeyboardAvoidingView来显示聚焦的输入,但是当显示键盘时,scrollView paddingBottom会更改并与Form重叠。
<Container style={styles.container}>
<Content contentContainerStyle={{flex:1}} scrollEnabled={false} enableOnAndroid >{/* styles.content */}
<ScrollView style={{flex: 1}} automaticallyAdjustContentInsets={true} indicatorStyle="white" >
<KeyboardAvoidingView behavior="padding" enabled={Platform.OS === 'android' ? true : false} style={styles.keyboardAvoidingView} keyboardVerticalOffset={60} >
<Form style={{margin:20,marginRight:35}}>
<Input>
{/*... Some Inputs*/}
</Input>
</Form>
</KeyboardAvoidingView>
</ScrollView>
</Content>
</Container>