How do I get a React Native app to run properly on an iPad?(如何让 React Native 应用程序在 iPad 上正常运行?)
问题描述
我的 React Native 应用刚刚被 Apple 拒绝,因为
My React Native app was just rejected by Apple because
我们注意到,在运行 iOS 10.3.3 的 iPad 上查看时,您的应用程序没有以 iPhone 分辨率运行.要解决此问题,请修改您的应用程序以确保它在 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.
他们提供了以下截图:
确实,这一切看起来都被压扁了,但我不确定我做错了什么.此应用是使用 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.
推荐答案
检查你的 app.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 上正常运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何让 React Native 应用程序在 iPad 上正常运行?
基础教程推荐
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
