Search code examples
react-nativeipadios-simulator

Why app is showing black space in iPad React Native


I have designed a app in react native and it is working fine for IOS and android mobiles. but when I run it on the iPad it is showing app in the centre and black space of 2 inches in the border. App is showing too small all space covered by black. Can anybody tell me why it is happening?


Solution

  • We can change it in Xcode from build setting targeted set to 1,2 and it will resolve.

    You have to change the Targeted device family. Select the project, then info-->Deployment--->Targeted device family to iPhone only and you have to do the same thing in targets. After that your app will be only for iPhone.