강의

멘토링

커뮤니티

Inflearn Community Q&A

hello3939's profile image
hello3939

asked

React Native with Expo: Learning Properly from ZeroCho

react-native의 SafeAreaView를 쓴 이유?

Resolved

Written on

·

214

0

안녕하세요!

 

react-nativeSafeAreaView 는 기본적으로 안드로이드 지원이 안되고 유연하지 않아 react-native-safe-area-context의 SafeAreaView를 사용하는게 권장된다고 하더라구요.

 

react-native의 SafeAreaView를 쓰신 이유가 궁금해요

 

 

reactreact-native하이브리드-앱typescriptexpo

Answer 1

0

zerocho님의 프로필 이미지
zerocho
Instructor

이 강의에서도 react-native-safe-area-context 씁니다

hello3939님의 프로필 이미지
hello3939
Questioner

EditProfileModal.tsx, SideMenu.tsx 보니까 안 그런거 같아서요, 제가 잘못 알고 있는지요?

useSafeAreaInsets는 사용하고 있는 곳은 확인했어요

zerocho님의 프로필 이미지
zerocho
Instructor

아, 그 부분은 그렇게 되어있네요. AI가 작성한 코드라서 확인을 못했습니다. 라이브러리의 코드로 바꾸시면 됩니다.

hello3939's profile image
hello3939

asked

Ask a question