React Native app 如何让 MIUI 导航栏透明?

How to make the MIUI navigation bar transparent in React Native app?

我在应用程序中使用@react-navigation/native 进行导航,但是当我切换到 MIUI 12 时,我注意到 MIUI 导航栏与我的应用程序导航栏重叠,这看起来不太好:

That's how it looks

我希望它看起来像这样:

That's how it supposed to look

我怎样才能实现这个目标?

看来您应该创建本机模块 ImmersiveRead About Immersive

或者您可以试试这个 react-native-full-screen。希望这会有所帮助