react-native - 如何避免我的键盘向上移动我的页脚
问题描述
嘿,我正在使用一个 react native 应用程序,我有一个我自己制作的页脚,但是当我使用键盘时,页脚向上移动到键盘上方和我的平面列表上方,我尝试了类似但它不起作用,我无法更改 android :windowSoftInputMode="adjustResize" 因为我在同一个应用程序中有其他行为
这是我的代码
render() {
return (
<View style={styles.container}>
{!this.state.search ? (
<Header/>
) : (
<SearchabalHeader/>
)}
<View style={styles.listContainer}>
<FlatList
data={this.state.data}
showsVerticalScrollIndicator={false}
renderItem={({ item }) => {
return (
<Item
status={item.status}
price={item.price}
address={item.address}
dateTime={new Date()}
/>
);
}}
/>
</View>
<View style={styles.footerContainer}>
<Footer activeTab="tab-2" user={this.props.user} />
</View>
</View>
);
}
}
我的风格是
StyleSheet.create({
container: {
backgroundColor: colors.grey_Three,
flex: 1,
},
listContainer: {
flex: 1,
paddingHorizontal: '3%',
paddingTop: '2%',
},
footerContainer: {},
});
解决方案
推荐阅读
- c# - 如何比较网格视图单元格和字符串
- reactjs - 如何从 React 钩子中获取选定选项的值?
- node.js - 如何从存储在 mongodb 中的对象中获取日期?
- fluentvalidation - FluentValidation - 验证接口子属性
- google-cloud-platform - 如何从 gcp 存储中获取图像 url 到数据工作室表报告
- php - 路由错误由于我的路由中的组前缀
- c# - Ajax 填充 C# 的下拉列表导致未定义
- javascript - 如何在控制台中打印表格行数据
- c# - 如何在 Double 参数中接受逗号分隔符
- xml - 未找到元素“nativescript-ui-sidedrawer:RadSideDrawer”的 Nativescript 模块“nativescript-ui-sidedrawer”