fix lightbox on android 15 (#7221)
This commit is contained in:
@@ -5,12 +5,8 @@
|
|||||||
* LICENSE file in the root directory of this source tree.
|
* LICENSE file in the root directory of this source tree.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
import {
|
import {StyleSheet, TouchableOpacity, ViewStyle} from 'react-native'
|
||||||
SafeAreaView,
|
import {SafeAreaView} from 'react-native-safe-area-context'
|
||||||
StyleSheet,
|
|
||||||
TouchableOpacity,
|
|
||||||
ViewStyle,
|
|
||||||
} from 'react-native'
|
|
||||||
import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
|
import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
|
||||||
import {msg} from '@lingui/macro'
|
import {msg} from '@lingui/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
|
|||||||
@@ -62,9 +62,9 @@ type Rect = {x: number; y: number; width: number; height: number}
|
|||||||
|
|
||||||
const PIXEL_RATIO = PixelRatio.get()
|
const PIXEL_RATIO = PixelRatio.get()
|
||||||
const EDGES =
|
const EDGES =
|
||||||
Platform.OS === 'android'
|
Platform.OS === 'android' && Platform.Version < 35
|
||||||
? (['top', 'bottom', 'left', 'right'] satisfies Edge[])
|
? (['top', 'bottom', 'left', 'right'] satisfies Edge[])
|
||||||
: (['left', 'right'] satisfies Edge[]) // iOS, so no top/bottom safe area
|
: (['left', 'right'] satisfies Edge[]) // iOS or Android 15+, so no top/bottom safe area
|
||||||
|
|
||||||
const SLOW_SPRING: WithSpringConfig = {
|
const SLOW_SPRING: WithSpringConfig = {
|
||||||
mass: isIOS ? 1.25 : 0.75,
|
mass: isIOS ? 1.25 : 0.75,
|
||||||
|
|||||||
Reference in New Issue
Block a user