diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-01-17 20:47:43 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-01-17 20:47:43 -0600 |
commit | 80e035cedeb27ef9bf57f57f436bdeb923236ef7 (patch) | |
tree | 2153dc7a3dd02a874760dcc2e3669877267b2749 /src/view/com/lightbox/Image.tsx | |
parent | a3e9a0691e9dbbf1c46f6b3969c559dff9d64d6f (diff) | |
download | voidsky-80e035cedeb27ef9bf57f57f436bdeb923236ef7.tar.zst |
Remove leftover code
Diffstat (limited to 'src/view/com/lightbox/Image.tsx')
-rw-r--r-- | src/view/com/lightbox/Image.tsx | 24 |
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, - }, -}) |