使用 React Native 0.64.2,我在 FlatList 下方有 View/Form(与 Instagram 评论或信使相同)。
这是我的简化代码,主要CSS属性在那里:
<View style={{flex: 1}}>
<FlatList
data={printedPosts}
...
/>
<View style={{backgroundColor: 'blue', flexDirection: 'row'}}>
<TextInput .../>
<Button .../>
</View>
</View>
在 Android 上,一切正常。当键盘打开时,表格在顶部(所有内容自动上升):
但是在 iOS 上(在 iphone 8 上测试过),当键盘打开时,一些内容是隐藏的(包括表单),这对于评论/消息来说是不利的:
我知道KeyboardAvoidingView,但我认为它不适合这种情况(无论如何我不能把它放在这里)。

