Android 上 React Native 应用程序周围的黑色粗边/边框 [英] Thick black edge/border around a React Native app on Android

查看:61
本文介绍了Android 上 React Native 应用程序周围的黑色粗边/边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

前段时间我用 React Native 组合了一个 Android 应用程序.我们在许多设备上对其进行了测试,但没有遇到我在这里问的那种问题.

Some time back I put together an Android app with React Native. We tested it on a number of devices and haven't had any issues of the sort I'm asking about here.

我在这里要求的是有关可能导致此问题的建议.我是该应用的开发者,但在这种情况下,我不知道从哪里开始.

What I'm asking for here is suggestions about what might be causing this. I'm the developer of the app, but in this case I don't know where to begin.

最近,有人将它安装在 HTC One m7 上,现在应用程序所在的屏幕周围出现了粗黑边框.结尾有图.

Recently, someone installed it on an HTC One m7, and there's now this thick black border all the way around the screen where the app should be. There's an image at the end.

您可以看到该应用仍在扩展其应有的完整尺寸,但边缘已变黑.

You can see the app is still extending the full size it should, but that the edges are blacked out.

这是我第一次看到这种情况,经过一番搜索似乎找不到其他人抱怨这种事情.这是我唯一一次在我们运行它的任何设备上看到它.

This is the first time I've seen this, and after some searching can't seem to find anyone else complaining about this sort of thing. This is the only time I've seen it on any of the devices we've run this on.

任何想法可能是什么原因?

Any ideas what might be the cause?

推荐答案

就我而言,我只是删除了这一行:

In my case, I just remove this line:

<代码><item name="android:windowBackground">@drawable/launch_screen_bitmap</item>

res/values/styles.xml 上:

而且效果很好.

这篇关于Android 上 React Native 应用程序周围的黑色粗边/边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆