Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native: Unwanted Black border on ipad 2 simulation

I am testing a new (simple) reactive native app, choosing ipad 2 as target in the simulator.

The loading screen shows full screen, but the first application screen (by react native) shows a big black border around the content. I created a completely new project, but it has the same border.

Is this a known issue? Do I need to add something to prevent this border from happening?

EDIT: I have an impression the application is built as an iphone app, but deployed/displayed to an ipad. I see the 1x / 2x button. Probably this is causing it. So probably the first question is: how do I configure xcode that it is actually an ipad app?

Thanks in advance!

Jeroen

like image 303
Jeroen Keppens Avatar asked May 15 '15 21:05

Jeroen Keppens


2 Answers

Go to Build Settings Type Targeted Device Family in search bar Select 1,2

Run the project it should resolve your issue.

like image 78
AshMan Avatar answered Oct 21 '22 13:10

AshMan


The application was being built as an iphone app, but deployed/displayed to an ipad. I see the 1x / 2x button. This was causing it. So: how do I configure xcode that it is actually an ipad app? See url below:

How to change iPhone/iPad app to iPhone only?

like image 18
Jeroen Keppens Avatar answered Oct 21 '22 12:10

Jeroen Keppens