mirror of
https://github.com/tooot-app/app
synced 2025-04-03 05:01:35 +02:00
Fixed #109
This commit is contained in:
parent
251695cc46
commit
1ee9b7d91d
@ -67,8 +67,8 @@ const GracefullyImage = React.memo(
|
||||
setImageLoaded(true)
|
||||
setImageDimensions &&
|
||||
setImageDimensions({
|
||||
width: nativeEvent.width,
|
||||
height: nativeEvent.height
|
||||
width: nativeEvent.source.width,
|
||||
height: nativeEvent.source.height
|
||||
})
|
||||
},
|
||||
[source.uri]
|
||||
@ -81,9 +81,9 @@ const GracefullyImage = React.memo(
|
||||
|
||||
const previewView = useMemo(
|
||||
() =>
|
||||
// Android flickrs between transition, thus keep showing the preview image
|
||||
uri.preview ? (
|
||||
uri.preview && !imageLoaded ? (
|
||||
<Image
|
||||
fadeDuration={0}
|
||||
source={{ uri: uri.preview }}
|
||||
style={[
|
||||
styles.placeholder,
|
||||
@ -96,6 +96,7 @@ const GracefullyImage = React.memo(
|
||||
const originalView = useMemo(
|
||||
() => (
|
||||
<Image
|
||||
fadeDuration={0}
|
||||
source={source}
|
||||
style={[{ flex: 1 }, imageStyle]}
|
||||
onLoad={onLoad}
|
||||
|
@ -117,6 +117,7 @@ const ScreenImagesViewer = ({
|
||||
navigation
|
||||
}: ScreenImagesViewerProp) => {
|
||||
if (imageUrls.length === 0) {
|
||||
navigation.goBack()
|
||||
return null
|
||||
}
|
||||
|
||||
|
@ -7,8 +7,7 @@ const audio = () => {
|
||||
playsInSilentModeIOS: true,
|
||||
interruptionModeIOS: Audio.INTERRUPTION_MODE_IOS_DO_NOT_MIX,
|
||||
interruptionModeAndroid: Audio.INTERRUPTION_MODE_ANDROID_DO_NOT_MIX,
|
||||
shouldDuckAndroid: true,
|
||||
playThroughEarpieceAndroid: true
|
||||
shouldDuckAndroid: true
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user