I am working on IOS React Native Project (using expo with bare workflow). By default my app use portrait mode, but sometimes I need change screen orientation to landscape mode. I use expo-screen-orientation library to change screen orientation. When app change screen orientation I have issue in released app, although in debug mode it is works perfect (both IOS Simulator / IOS device). In release mode I have issue with cut screen. Please check photos in attach
import { StatusBar } from 'expo-status-bar';
import {StyleSheet, Text, View, Button} from 'react-native';
import * as ScreenOrientation from 'expo-screen-orientation';
export default function App() {
const foo = async()=>{
await ScreenOrientation.lockAsync(ScreenOrientation.OrientationLock.LANDSCAPE_LEFT);
}
return (
<View style={styles.container}>
<Text style={{paddingTop:50}}>Open up App.js to start working on your app!</Text>
<Button title="Rotate" onPress={foo}/>
<StatusBar style="auto" />
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#cccccc',
alignItems: 'center',
justifyContent: 'flex-start',
},
});

