about summary refs log tree commit diff
path: root/src/view/com/lightbox/Image.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/com/lightbox/Image.tsx')
-rw-r--r--src/view/com/lightbox/Image.tsx24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/view/com/lightbox/Image.tsx b/src/view/com/lightbox/Image.tsx
deleted file mode 100644
index a620e949e..000000000
--- a/src/view/com/lightbox/Image.tsx
+++ /dev/null
@@ -1,24 +0,0 @@
-import React from 'react'
-import {Image, StyleSheet, useWindowDimensions, View} from 'react-native'
-
-export function Component({uri}: {uri: string}) {
-  const winDim = useWindowDimensions()
-  const top = winDim.height / 2 - (winDim.width - 40) / 2 - 100
-  return (
-    <View style={[styles.container, {top}]}>
-      <Image style={styles.image} source={{uri}} />
-    </View>
-  )
-}
-
-const styles = StyleSheet.create({
-  container: {
-    position: 'absolute',
-    left: 0,
-  },
-  image: {
-    resizeMode: 'contain',
-    width: '100%',
-    aspectRatio: 1,
-  },
-})