warning : AsyncStorage has been extracted from react-native core and will be removed in a future release...

isk·2023년 1월 1일

Trouble Shooting

목록 보기
3/3

warning

AsyncStorage has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '@react-native-async-storage/async-storage' instead of 'react-native'. See https://github.com/react-native-async-storage/async-storage

AsyncStorage를 사용하지 않지만 자꾸 뜨는 위 메시지는, 실행을 불가능하게 하진 않지만 거슬린다.
아래의 방법으로 메시지가 뜨지 않게 할 수 있다.
단, firebase의 getAuth를 사용한다면 이건 근본적인 해결책이 될 수 없고, getAuth대신 initializeAuth를 사용해야 할 수도 있다.

  • 'node_modules/react-native/index.js'로 이동
  • 'AsyncStorage'가 포함된 모든 행을 주석 처리.

1개의 댓글

comment-user-thumbnail
2023년 1월 3일

오호.. 꿀팁이네요!

답글 달기