summaryrefslogtreecommitdiff
path: root/app/components/auto-image/auto-image.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'app/components/auto-image/auto-image.tsx')
-rw-r--r--app/components/auto-image/auto-image.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/components/auto-image/auto-image.tsx b/app/components/auto-image/auto-image.tsx
index 39d71ca..a8bfe37 100644
--- a/app/components/auto-image/auto-image.tsx
+++ b/app/components/auto-image/auto-image.tsx
@@ -1,10 +1,10 @@
-import React, { useLayoutEffect, useState } from "react"
+import React, { useLayoutEffect, useState } from 'react'
import {
Image as RNImage,
ImageProps as DefaultImageProps,
ImageURISource,
Platform,
-} from "react-native"
+} from 'react-native'
type ImageProps = DefaultImageProps & {
source: ImageURISource
@@ -31,7 +31,7 @@ export function AutoImage(props: ImageProps) {
RNImage.getSize(props.source.uri as any, (width, height) => {
setImageSize({ width, height })
})
- } else if (Platform.OS === "web") {
+ } else if (Platform.OS === 'web') {
// web requires a different method to get it's size
RNImage.getSize(props.source as any, (width, height) => {
setImageSize({ width, height })