소품으로 React Native의 맞춤식 무국적 구성 요소에 이미지 원본과 제목을 보내려고합니다. (imageSource 및 제목)반응 네이티브로 상태 비 저장 구성 요소에 소품 보내기
props.imageSource 줄 오류가 발생했습니다, 도움을 주셨습니다.
이const MainPageButton = (props) => {
var imageSource = require({props.imageSource});
return (
<TouchableOpacity>
<Image source={imageSource} />
<Text>{props.title}</Text>
</TouchableOpacity>
)
}