diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-01-17 21:18:25 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-01-17 21:18:25 -0600 |
commit | df4acbd683fb66c469c25915e875a8bcd2d83971 (patch) | |
tree | 0dc157b3310f3be060fead23432a2b2c1264ac80 /src/view/com/lightbox/Image.tsx | |
parent | 065d7ef629c7d991e520fc3dd94cd84b71014902 (diff) | |
parent | 7328e808255aa9680e6af4d2ffdda8b869c2e1f3 (diff) | |
download | voidsky-df4acbd683fb66c469c25915e875a8bcd2d83971.tar.zst |
Merge branch 'improved-lightbox' into main
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, - }, -}) |