[英]How can I make the android navigation bar transparent when React Native Modal is shown?
I use React Native CLI.我使用 React Native CLI。 With Alert, the full screen of the app is covered and the navigation bar becomes transparent.
使用警报,应用程序的全屏被覆盖,导航栏变得透明。 However this does not happen with a Modal, which does not cover the navigation bar.
但是,这不会发生在不覆盖导航栏的 Modal 中。 (and it looks a bit bad).
(而且看起来有点糟糕)。 I don't understand why that happens and I'd be grateful if someone could help me out.
我不明白为什么会发生这种情况,如果有人可以帮助我,我将不胜感激。
尝试将透明道具设置为“真” - https://reactnative.dev/docs/modal#transparent
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.