react-native-status-bar-height 라이브러리 설치
yarn add react-native-status-bar-height
디바이스마다 상이한 status-bar의 높이에 맞게 marginTop 값을 주어
Status-Bar에 가려지는 부분을 없앨 때 유용하게 사용할 수 있다!
import
import { getStatusBarHeight } from 'react-native-status-bar-height';
use
marginTop: getStatusBarHeight()
'React Native' 카테고리의 다른 글
Do it! 리액트 네이티브 앱 프로그래밍 [서평단 당첨] (2) | 2021.05.16 |
---|---|
[React-Native] React-Navigation 정리 (2) | 2021.04.05 |
[React-Native] 기본 Library 설치 (0) | 2021.03.29 |
[React-Native] Expo 환경설정 (Window) (0) | 2021.03.23 |