【问题标题】:drawUnderStatusBar causing tab bar bottom cut off React native navigation on AndroiddrawUnderStatusBar 导致标签栏底部切断 Android 上的 React 本机导航
【发布时间】:2023-03-18 18:54:01
【问题描述】:

我设置drawUnderStatusBar: true设置状态栏透明,这导致标签栏底部被切掉一半。
问题出在 Android 上,因为 drawUnderStatusBar 只是 Android 属性。
如果设置为 false,标签栏会显示正常。

复制步骤:

使用drawUnderStatusBar: true 推送屏幕并弹出(带有标签栏的主屏幕)。

环境:

React Native Navigation version: 1.1.334
React Native version: 0.55
Platform: Android
Device info (Simulator/Device? OS version? Debug/Release?): Nexus 6, Android 7.1.1, debug

【问题讨论】:

    标签: android react-native react-native-navigation


    【解决方案1】:

    我曾经遇到过类似的问题。 我通过将style={Stylesheet.absoluteFill} 添加到主容器来修复它,它解决了这个问题。

    【讨论】:

      猜你喜欢
      • 2021-04-02
      • 2023-01-20
      • 2023-02-03
      • 1970-01-01
      • 2017-10-27
      • 2021-07-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多