[英]How can I use Top Navigator and Bottom Navigator without having Top Navigator overlap with the Status Bar in React Navigation?
您應該將您的應用程序容器 styles 設置為具有等於狀態欄高度的marginTop
值。 然后您的整個應用程序將顯示在狀態欄下方。
像這樣的東西:
import Constants from "expo-constants";
...
const styles = StyleSheet.create({
container: {
marginTop: Constants.statusBarHeight
}
});
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.