React-native: unwanted top & bottom black border iphone 5

Created on 26 Oct 2015  路  16Comments  路  Source: facebook/react-native

I tried run on device iphone 5 with simple app by react-native init command.
I get welcome to React Native screen
But It seem screen scaled because existing top & bottom black border
What I do wrong here ?
Help

Locked

Most helpful comment

@fwchen

I had this issues and solved it with this way,

  1. Go to XCode, and General tab
  2. In App Icons and Launch Image sections,
    2.1. Click the dropdown Launch Image Source, and a pop up
    will come out, click Migrate
    2.2. Click the dropdown Launch Screen File, and select the very first one

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

I had this issues after updating assets for AppIcons and SplashScreen

Hope it helps!

All 16 comments

ios 7.1.1
Does it matter ?

Screenshot?

_420764984778638_686049295_n

I tried add LauchImage to Images.xcassets
And checked iOS 7.0 and later : iphone Portrait.
But still not work.
What I miss ?

Figured out.
Thank you guys

@nvcken I have this same issue on an iPhone 4S with iOS 7 - what did you do in the end to fix it?

I also have the same issue.. Might be after an update to react-native... I feel like its a Xcode issue.
I am running on device and simulator for iPhone 5 and get the dimensions for height and width as 480 X 320 which is not correct, it should be 320 脳 568...

Any ideas? :)

I solved the issue...

Delete all the launch images, and when prompted by xCode to auto create the launch image "[email protected]" say yes and BOOM it works..

To adapt your app to the new taller screen, the first thing you do is to change the launch image to: [email protected]. Its size should be 1136x640 (HxW). Yep, having the default image in the new screen size is the key to let your app take the whole of new iPhone 5's screen.

<3

@unicornRainbows how did you do it exactly? It doesn't work for me :(

@Tiendq Remove all your launch screen assets, clean project, close Xcode, open it up again.. when you select the project and select iPhone5 simulator Xcode should prompt you to add in this image when you select the launch image asset drop down... Hope this helps.. this happened to me awhile back and was an Xcode related issue.

any one help? all not work for me. i am crazy

@fwchen

I had this issues and solved it with this way,

  1. Go to XCode, and General tab
  2. In App Icons and Launch Image sections,
    2.1. Click the dropdown Launch Image Source, and a pop up
    will come out, click Migrate
    2.2. Click the dropdown Launch Screen File, and select the very first one

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

I had this issues after updating assets for AppIcons and SplashScreen

Hope it helps!

@luqmanrom thank you. i fixed it. but i don't remember how 馃槀

@luqmanrom I just did till step 2 and it worked for me. Can you explain why it's happening and how migrate fixes it?

Was this page helpful?
0 / 5 - 0 ratings