[RN]React-native에서 Andriod 자동회전 기능

junhyung kwon·2023년 5월 4일
0

React native를 개발 하던 중 자동 회전 이슈

  • 내가 해결해본 방법: AndroidManifest.xml -> android:configChanges -> orientation를 추가해 보았음 해결x
  • AndroidManifest.xml -> android:name=MainActivity에서 android:screenOrientation="portrait"(세로 고정 코드)를 넣어줬더니 세로모드로 고정이 잘 되었다.

가로모드 고정

  • AndroidManifest.xml -> android:name=MainActivity에서 android:screenOrientation="landscape"(가로 고정 코드)를 넣어주면 가로모드 고정이 된다.
profile
“Everything comes to him who hustles while he waits” 항상 최고가 되기 위해 꾸준히 노력하며 성장해 나아가는 Front-End 개발자 권준형입니다.

0개의 댓글