diff --git a/src/components/GracefullyImage.tsx b/src/components/GracefullyImage.tsx index dcacb0dd..62027dfb 100644 --- a/src/components/GracefullyImage.tsx +++ b/src/components/GracefullyImage.tsx @@ -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 ? ( ( { if (imageUrls.length === 0) { + navigation.goBack() return null } diff --git a/src/startup/audio.ts b/src/startup/audio.ts index cfe6e475..f92dc883 100644 --- a/src/startup/audio.ts +++ b/src/startup/audio.ts @@ -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 }) }