커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
코드좀 봐주세요!
앱개발 종합반 - 리액트 네이티브
기타
북마크
김*환
댓글
3
추천
0
조회수
11
조회수
11
답변 완료

  코드 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

  }}

/>)}


취소
 공유
취소
댓글 0
댓글 알림
나의얼굴