18 lines
375 B
TypeScript
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,
|
|
},
|
|
}); |