简体   繁体   English

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

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

My React Native app was just rejected by Apple because 我的React Native应用程序刚被Apple拒绝,因为

We noticed that your app did not run at iPhone resolution when reviewed on iPad running iOS 10.3.3. 我们注意到,在运行iOS 10.3.3的iPad上进行评论时,您的应用无法以iPhone分辨率运行。 To resolve this issue, please revise your app to ensure it runs and displays properly at iPhone resolution on iPad. 要解决此问题,请修改您的应用以确保其运行并在iPad上以iPhone分辨率正确显示。 Even if your app was developed specifically for iPhone, users should still be able to use your app on iPad. 即使您的应用是专为iPhone开发的,用户仍然可以在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. 这个应用程序是使用Expo SDK构建的。

Check if you have the following in your app.json . 检查app.json是否包含以下app.json Try and set the supportsTablet to true. 尝试将supportsTablet设置为true。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何构建一个 react-native 应用程序,以便它在 ipad 上作为 ipad 应用程序运行? - How do I build a react-native app so that it runs as an ipad app on an ipad? 在 React Native 中,如何让这些箭头正确显示在 ImageBackground 上? - In React Native, how do I get these arrows to appear properly on an ImageBackground? 如何让'react-native-cli'在指定的硬件中运行我的应用程序? - How do I get 'react-native-cli' to run my app in the specified hardware? 如何提示iPhone / iPad访问者安装本机应用程序? - How do I prompt iPhone/iPad visitors to install native app? 如何从iPad的本机应用程序在Safari中打开链接? - How do I open a link in Safari from a native app in iPad? 我刚刚推出了 expo react 本机应用程序。 如何通过 xcode 运行应用程序? - I've just ejected expo react native app. How do I run the app via xcode? 如何在iPad / iPhone应用程序中正确处理自定义文件类型? - How do I properly handle custom file types in my iPad/iPhone app? 如何为iPad Pro缩放iPad应用程序比例? - How do I make an iPad app scale for the iPad pro? 如何将功能/文件导入React本机应用程序? - How do I import functions/files to a react native app? 如何在iOS上的react本机应用程序上检查网络流量? - How do I inspect network traffic on a react native app on iOS?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM