custom alert orientation bug fix

This commit is contained in:
tapframe 2025-12-09 14:50:00 +05:30
parent 1b990aa6ec
commit 6bdc998496
4 changed files with 18 additions and 16 deletions

View file

@ -86,6 +86,7 @@ export const CustomAlert = ({
onRequestClose={onClose}
statusBarTranslucent={true}
hardwareAccelerated={true}
supportedOrientations={['portrait', 'landscape', 'landscape-left', 'landscape-right']}
>
<Animated.View
style={[

View file

@ -18,7 +18,7 @@ const MajorUpdateOverlay: React.FC<Props> = ({ visible, latestTag, releaseNotes,
if (!visible) return null;
return (
<Modal visible={visible} transparent animationType="fade" statusBarTranslucent presentationStyle="overFullScreen">
<Modal visible={visible} transparent animationType="fade" statusBarTranslucent presentationStyle="overFullScreen" supportedOrientations={['portrait', 'landscape', 'landscape-left', 'landscape-right']}>
<View style={styles.backdrop}>
<View style={[styles.card, { backgroundColor: currentTheme.colors.darkBackground, borderColor: currentTheme.colors.elevation3 }]}>
<View style={styles.header}>

View file

@ -87,6 +87,7 @@ const UpdatePopup: React.FC<UpdatePopupProps> = ({
animationType="fade"
statusBarTranslucent={true}
presentationStyle="overFullScreen"
supportedOrientations={['portrait', 'landscape', 'landscape-left', 'landscape-right']}
>
<View style={styles.overlay}>
<View style={[

View file

@ -4081,7 +4081,7 @@ const AndroidVideoPlayer: React.FC = () => {
transparent
animationType="fade"
onRequestClose={handleErrorExit}
supportedOrientations={['landscape', 'portrait']}
supportedOrientations={['landscape', 'portrait', 'landscape-left', 'landscape-right']}
statusBarTranslucent={true}
>
<View style={{