React Native固定页脚 [英] React Native fixed footer
本文介绍了React Native固定页脚的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试创建看起来像现有Web应用程序的React本机应用程序.我在窗口底部有一个固定的页脚.有谁知道如何通过本机反应实现这一目标?
I try to create react native app that looks like existing web app. I have a fixed footer at bottom of window. Do anyone have idea how this can be achieved with react native?
在现有应用中很简单:
.footer {
position: fixed;
bottom: 0;
}
推荐答案
Off the top of my head you could do this with a ScrollView. Your top-level container could be a flex container, inside that have a ScrollView at the top and your footer at the bottom. Then inside the ScrollView just put the rest of your app as normal.
这篇关于React Native固定页脚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文