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,10 +86,11 @@ export const CustomAlert = ({
onRequestClose={onClose}
statusBarTranslucent={true}
hardwareAccelerated={true}
supportedOrientations={['portrait', 'landscape', 'landscape-left', 'landscape-right']}
>
<Animated.View
<Animated.View
style={[
styles.overlay,
styles.overlay,
{ backgroundColor: 'rgba(0,0,0,0.6)' },
overlayStyle
]}

View file

@ -18,9 +18,9 @@ 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.card, { backgroundColor: currentTheme.colors.darkBackground, borderColor: currentTheme.colors.elevation3 }]}>
<View style={styles.header}>
<View style={[styles.iconCircle, { backgroundColor: `${currentTheme.colors.primary}22` }]}>
<MaterialIcons name="new-releases" size={28} color={currentTheme.colors.primary} />

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={[
@ -104,10 +105,10 @@ const UpdatePopup: React.FC<UpdatePopupProps> = ({
styles.iconContainer,
{ backgroundColor: `${currentTheme.colors.primary}20` }
]}>
<MaterialIcons
name="system-update"
size={32}
color={currentTheme.colors.primary}
<MaterialIcons
name="system-update"
size={32}
color={currentTheme.colors.primary}
/>
</View>
<Text style={[
@ -127,10 +128,10 @@ const UpdatePopup: React.FC<UpdatePopupProps> = ({
{/* Update Info */}
<View style={styles.updateInfo}>
<View style={styles.infoRow}>
<MaterialIcons
name="info-outline"
size={16}
color={currentTheme.colors.primary}
<MaterialIcons
name="info-outline"
size={16}
color={currentTheme.colors.primary}
/>
<Text style={[
styles.infoLabel,
@ -150,7 +151,7 @@ const UpdatePopup: React.FC<UpdatePopupProps> = ({
{updateInfo.manifest?.id || 'Latest'}
</Text>
</View>
{!!getReleaseNotes() && (
<View style={styles.descriptionContainer}>
<Text style={[
@ -194,7 +195,7 @@ const UpdatePopup: React.FC<UpdatePopupProps> = ({
style={[
styles.button,
styles.secondaryButton,
{
{
backgroundColor: currentTheme.colors.darkBackground || '#2a2a2a',
borderColor: currentTheme.colors.elevation3 || '#444444',
}
@ -215,7 +216,7 @@ const UpdatePopup: React.FC<UpdatePopupProps> = ({
style={[
styles.button,
styles.secondaryButton,
{
{
backgroundColor: currentTheme.colors.darkBackground || '#2a2a2a',
borderColor: currentTheme.colors.elevation3 || '#444444',
}

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={{