Open toneyavuz opened 5 years ago
?
I think you need to add orientation for your app. You can add it info.plist. You can review this
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
This is a blocking issue for apps/games where the design only supports landscape orientation (i.e. situations where adding UIInterfaceOrientationPortrait
is not possible because it would break the rest of the app layout).
If the lightbox had a landscapeOnly
prop or similar, that could pass the correct supportedOrientations
prop to the underlying Modal
component and prevent the crash.
my app orientations only landspace
Path: node_modules/react-native-lightbox/LightboxOverlay.js i added supportedOrientations={['landscape']} to Modal. problem is resolve.