我很烦恼。在我的代码中,键盘避免视图不起作用。我正在使用键盘避免视图,但是当我填写确认密码时,textInput 将在键盘后面并且不显示。请为我的代码建议我更好的答案。我的代码是:-
<SafeAreaView style={{ flex: 1 }}>
<View>
<View>
<Image source={require('../img/LykaLogo.png')} style={{ width: 100, height: 100 }} />
</View>
</View>
<View >
<KeyboardAvoidingView behavior='padding'>
<View>
<Text style={{fontSize:15,}}>CREATE USER ACCOUNT</Text>
</View>
<View >
<View >
<TextInput
placeholder='FULL NAME'
inputStyle={{fontSize:15}}
/>
</View>
<View >
<TextInput
placeholder='USERNAME'
inputStyle={{fontSize:15}}
/>
</View>
<View >
<TextInput
placeholder='EMAIL'
inputStyle={{fontSize:15}}
/>
</View>
<View >
<TextInput
placeholder='PHONE'
inputStyle={{fontSize:15}}
/>
</View>
<View >
<TextInput
placeholder='PASSWORD'
inputStyle={{fontSize:15}}
/>
</View>
<View>
<TextInput
placeholder='CONFIRM PASSWORD'
inputStyle={{fontSize:15}}
/>
</View>
</View>
</KeyboardAvoidingView>
</View>
</SafeAreaView>