React Native:ipad 2模拟中不需要的黑色边框 [英] React Native: Unwanted Black border on ipad 2 simulation

查看:309
本文介绍了React Native:ipad 2模拟中不需要的黑色边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在测试一个新的(简单的)反应原生应用程序,在模拟器中选择ipad 2作为目标。

I am testing a new (simple) reactive native app, choosing ipad 2 as target in the simulator.

加载屏幕显示全屏,但第一个应用程序屏幕(通过本机反应)显示内容周围的大黑色边框。我创建了一个全新的项目,但它有相同的边框。

The loading screen shows full screen, but the first application screen (by react native) shows a big black border around the content. I created a completely new project, but it has the same border.

这是一个已知的问题吗?我是否需要添加一些东西来防止这种边界发生?

Is this a known issue? Do I need to add something to prevent this border from happening?

编辑:我的印象是该应用程序是作为iphone应用程序构建的,但已部署/显示到ipad 。我看到1x / 2x按钮。可能这是造成它的原因。所以可能第一个问题是:如何配置xcode它实际上是一个ipad应用程序?

I have an impression the application is built as an iphone app, but deployed/displayed to an ipad. I see the 1x / 2x button. Probably this is causing it. So probably the first question is: how do I configure xcode that it is actually an ipad app?

提前致谢!

Jeroen

推荐答案

该应用程序正在构建为iphone应用程序,但已部署/显示到ipad。我看到1x / 2x按钮。这是造成它的原因。那么:我如何配置xcode它实际上是一个ipad应用程序?请参阅以下网址:

The application was being built as an iphone app, but deployed/displayed to an ipad. I see the 1x / 2x button. This was causing it. So: how do I configure xcode that it is actually an ipad app? See url below:

如何仅将iPhone / iPad应用程序更改为iPhone?

这篇关于React Native:ipad 2模拟中不需要的黑色边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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