TIL: RN | webview - width, height 고정

Lumpen·2023년 2월 27일
0

WebView

목록 보기
1/8

react native webview 에서 기기별 width, height 대응을 위해

width 는 public/index.html meta 태그에 속성,
height 는 src/index.css html 태그 에 view height 를 100 으로 주었다

width

<meta name="viewport" content="width=device-width, user-scalable=no">

height

html {
    height: 100vh;
}
profile
떠돌이 생활을 하는. 실업자는 아니지만, 부랑 생활을 하는

0개의 댓글