[React Native] Target both iPhone and iPad with React Native
Posted Answer1215
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[React Native] Target both iPhone and iPad with React Native相关的知识,希望对你有一定的参考价值。
By default, React Native only targets iPhone - so if you run on an iPad, it will show up as a scaled app, and won‘t look like a native iPad app.
To target both iPhone and iPad, you have to change the xcode project to build it as a universal app. Do that by finding the Deployment Info
section of the General
tab in the app target - and switch that from iPhone
to Universal
.
Then, you can run your app in either the iPhone or iPad simulator, and change the styling based on the current device.
https://egghead.io/lessons/react-native-target-both-iphone-and-ipad-with-react-native
以上是关于[React Native] Target both iPhone and iPad with React Native的主要内容,如果未能解决你的问题,请参考以下文章
NSTimer 在 React Native 组件中没有被触发
在 JavaScript Discord Bot 中,为啥 message.react() 是“不是函数”
Xcode 12 部署警告“IPHONEOS_DEPLOYMENT_TARGET”
如何将Drift bot JS代码与静态React NextJs应用(着陆页)整合?
JAVA注解详解(@Target,@Documented,@Retention,@Inherited,@Native,@Repeatable)