如何让React Native应用程序在iPad上正常运行?

如何让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
},