Expo-StickerSmash/components/ImageViewer.js

17 lines
450 B
JavaScript

import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View, Image } from 'react-native';
export default function ImageViewer({placeholderImageSource,selectedImage}){
const imageSource = selectedImage ? { uri: selectedImage } : placeholderImageSource;
return (
<Image source={imageSource} style={styles.image} />
);
}
const styles = StyleSheet.create({
image:{
width:350,
height:450,
borderRadius:80
}
})