Files
matrix-frontend/components/ImageViewer.tsx
T
2024-11-22 14:12:18 +01:00

18 lines
375 B
TypeScript

import { StyleSheet } from "react-native";
import { Image, type ImageSource } from "expo-image";
type Props = {
imgSource: ImageSource;
};
export default function ImageViewer({ imgSource }: Props) {
return <Image source={imgSource} style={styles.image} />;
}
const styles = StyleSheet.create({
image: {
width: 320,
height: 440,
borderRadius: 18,
},
});