我需要修复屏幕底部的输入,以便键盘推动此输入(类似于instagram注释(。
下面是一个示例((:https://snack.expo.io/LPRwoGpik
它工作得很好,但如果我把FlatList
放在ScrollView
里面,底部的输入就会消失。
解决这个问题的正确方法是什么?
尝试这个
<View style={{flex: 1,}} >
<ScrollView>
{content}
</ScrollView>
<TextInput style={{position: "absolute", bottom :0}}/>
</View>