지니 코딩일기

RN) SafeAreaView 본문

Programming/React-native

RN) SafeAreaView

zzzl 2022. 6. 30. 10:18

요약

iOS에서 노치, 화면 테두리(radius)에 의해 가려지는 부분에 자동으로 padding을 주어 가려짐을 방지한다

 

공식 문서

https://reactnative.dev/docs/safeareaview

 

SafeAreaView · React Native

The purpose of SafeAreaView is to render content within the safe area boundaries of a device. It is currently only applicable to iOS devices with iOS version 11 or later.

reactnative.dev

 

예시

 

'Programming > React-native' 카테고리의 다른 글

RN) react native 헤더 사이즈 구하기  (0) 2022.07.20
RN) ActivityIndicator 로딩바  (0) 2022.07.04
RN) KeyboardAvoidingView  (0) 2022.06.30
RN) TouchableWithoutFeedback  (0) 2022.06.24
RN) FlatList  (0) 2022.06.24