mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at remove-scenes 24 lines 560 B view raw
1import React from 'react' 2import {Image, StyleSheet, useWindowDimensions, View} from 'react-native' 3 4export function Component({uri}: {uri: string}) { 5 const winDim = useWindowDimensions() 6 const top = winDim.height / 2 - (winDim.width - 40) / 2 - 100 7 return ( 8 <View style={[styles.container, {top}]}> 9 <Image style={styles.image} source={{uri}} /> 10 </View> 11 ) 12} 13 14const styles = StyleSheet.create({ 15 container: { 16 position: 'absolute', 17 left: 0, 18 }, 19 image: { 20 resizeMode: 'contain', 21 width: '100%', 22 aspectRatio: 1, 23 }, 24})