
코드 1번과 2번을 합쳐보고 싶어서 코드3번을 만들어 봤습니다. 화면 출력은 되는데 이미지를 클릭하면 오류가 뜨더라구요! 어디서 잘못된걸까요?
[1번]
{
tip.images?.map((img)=> <Image style={styles.mainimage} source={{uri:img}}/>)
}
[2번]
<ImageModal
swipeToDismiss={false}
resizeMode="contain"
imageBackgroundColor="#000000"
style={{
width: imageWidth,
height: 250,
}}
source={{
uri:
'https://cdn.pixabay.com/photo/2018/01/11/09/52/three-3075752_960_720.jpg',
}}
/>
[3번 결과물]
{
tip.images?.map((img)=>
<ImageModal
swipeToDismiss={false}
resizeMode="cover"
imageBackgroundColor="#000000"
style={
styles.mainimage
}
source={{
uri:img
}}
/>)}
