HarvestProfit / react-native-rectangle-scanner

React Native Document/Rectangle Scanner
MIT License
196 stars 62 forks source link

Black screen on iOS #97

Closed colinmbr closed 2 years ago

colinmbr commented 2 years ago

After successfully building and launching on my physical device, the app asks for camera permissions and iOS shows that the camera is being used, however a black screen is displayed with nothing else.

In closed issues someone else had a similar issue, fixed by adding NSCameraUsageDescription to their Info.plist which I already have (along with an associated string).

Any thoughts are appreciated.

colinmbr commented 2 years ago

I resolved this issue by doing the following:

In the left pane (project navigator) select [project name] > General > Deployment Info > Main Interface was automatically set to blank, I changed it to LaunchScreen.storyboard.

Also, don't forget to provide a width and height for the scanner.