React Native: Unwanted Black border on ipad 2 simulation

后端 未结 4 996
花落未央
花落未央 2021-01-03 19:03

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 (

相关标签:
4条回答
  • 2021-01-03 19:13

    Now with newer version of XCode. Build Settings -> Targeted Device Family -> Select Universal.

    0 讨论(0)
  • 2021-01-03 19:18

    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?

    0 讨论(0)
  • 2021-01-03 19:24

    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!

    0 讨论(0)
  • 2021-01-03 19:33

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

    Run the project it should resolve your issue.

    0 讨论(0)
提交回复
热议问题