How do I get a React Native app to run properly on an iPad?

流过昼夜 提交于 2019-12-07 05:09:39

问题


My React Native app was just rejected by Apple because

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:

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.


回答1:


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

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


来源:https://stackoverflow.com/questions/46161991/how-do-i-get-a-react-native-app-to-run-properly-on-an-ipad

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!