码迷,mamicode.com
首页 > 其他好文 > 详细

[React Native] Target both iPhone and iPad with React Native

时间:2018-05-03 22:12:38      阅读:221      评论:0      收藏:0      [点我收藏+]

标签:http   find   simulator   cal   hang   ase   lin   AC   base   

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

标签:http   find   simulator   cal   hang   ase   lin   AC   base   

原文地址:https://www.cnblogs.com/Answer1215/p/8987412.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!