728x90
1.
import k from "../asset/k.png";
<Image source ={k}/>
2.
<Image source={require("../assets/k.png")} />
3.
<Image source={{ uri: " "}} />
TIP
<View style={styles.back}>
<Image source={k} style={styles.Img}/>
</View>
const styles = StyleSheet.create({
back:{
background:"black",
width:100%,
height:100%
},
Img:{
opacity:0.8
}
})
728x90
'FE' 카테고리의 다른 글
[RN] - 더보기 누르면 글 보이게 하는 기능 (0) | 2022.07.08 |
---|---|
TS & RN - props 타입 선언법 (0) | 2022.07.06 |
[RN] - svg 사용법 with yarn (0) | 2022.07.04 |
[RN] - 첫 세팅 이후 ~ 앱 실행 (0) | 2022.06.22 |
[RN] - 현재 사용하고 있는 폴더구조 (0) | 2022.06.22 |