https://reactnative.dev/docs/imagebackground
ImageBackground · React Native
A common feature request from developers familiar with the web is background-image. To handle this use case, you can use the ` component, which has the same props as `, and add whatever children to it you would like to layer on top of it.
reactnative.dev
source 경로는 require로 Image 태그와 같이 설정해주면 되고
이미지 비율은 resizeMode props로 맞춰주면 된다!!!(stretch가 꽉차게, cover가 사이즈에 맞게 자르기)
'react native' 카테고리의 다른 글
21.12.28 Require cycles are allowed, but can result in uninitialized values. (0) | 2021.12.28 |
---|---|
21.12.21 코인마켓캡 API 연결 (0) | 2021.12.28 |
21.12.17 each child in a list should have a unique key prop (0) | 2021.12.17 |
21.12.16 ScrollView 수평으로 (0) | 2021.12.16 |
21.12.09 the title prop of a button must be a string (0) | 2021.12.09 |