Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I build a react-native app so that it runs as an ipad app on an ipad?

Tags:

My app looks terrible on an ipad because it's running as an iphone-emulated app instead of an ipad app.

What do I need to do in my code to deal with the possibility that it may be running on an ipad?

How do I build the app with react-native so that it will install on an ipad and run as an ipad app?

Is this possible to do without xcode?

I'm running react-native run-ios with an iPad Air simulator running. Perhaps I need to set up a scheme and call it with --scheme?

like image 696
jcollum Avatar asked May 10 '17 17:05

jcollum


People also ask

Can React Native BE USED FOR iPad?

You can use React Native today in your existing Android and iOS projects or you can create a whole new app from scratch.

How do I create a React Native app on iPad?

Using React Native on macOS The React Native CLI is available as an npm package. Before installing it, make sure Xcode is installed on your system. This is where you build the native iOS code for React Native to use. As a first step, install Xcode from the App Store.

Can I use React Native for iOS app?

React Native supports building apps for iOS, Android, and web from a single code base. It's a more affordable technology than Swift, yet it allows creating high-quality apps.


1 Answers

I think you have not kept your Devices in Xcode as Universal. Go to Xcode click on the project name. In the target section go to Deployment Info. Set Devices to Universal. enter image description here

like image 137
atitpatel Avatar answered Sep 20 '22 13:09

atitpatel