如何让React Native应用程序在iPad上正常运行? [英] How do I get a React Native app to run properly on an iPad?

查看:575
本文介绍了如何让React Native应用程序在iPad上正常运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的React Native应用程序刚刚被Apple拒绝,因为

My React Native app was just rejected by Apple because


我们注意到在iPad上查看时你的应用程序没有以iPhone分辨率运行运行iOS 10.3.3。要解决此问题,请修改您的应用以确保其运行并在iPad上以iPhone分辨率正确显示。即使您的应用是专为iPhone开发的,用户仍然可以在iPad上使用您的应用。

We noticed that your app did not run at iPhone resolution when reviewed on iPad running iOS 10.3.3. To resolve this issue, please revise your app to ensure it runs and displays properly at iPhone resolution on iPad. Even if your app was developed specifically for iPhone, users should still be able to use your app on iPad.

他们提供了以下屏幕截图:

They provided the following screenshot:

事实上,它确实看起来很眯眼,但我不确定我做错了什么。此应用程序是使用Expo SDK构建的。

Indeed, it does all look pretty squished, but I'm not sure what I'm doing wrong. This app was built using the Expo SDK.

推荐答案

检查您的应用程序中是否包含以下内容。 JSON 。尝试将 supportsTablet 设置为true。

Check if you have the following in your app.json. Try and set the supportsTablet to true.

"ios": {
    "bundleIdentifier": "your bundle identifier",
    "supportsTablet": true
},

这篇关于如何让React Native应用程序在iPad上正常运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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