728x90
반응형
리액트 네이티브 Drawer Navigation 공부를 하기 위해 Drawer 설치를 진행하고 예제 코드를 입력해 보려는데
const Drawer = createDrawerNavigator();
코드를 추가하니까
이런 오류가 뜬다.
reanimated 2 failed to create a worklet maybe you forgot to add reanimated's babel plugin

https://github.com/software-mansion/react-native-reanimated/issues/2774
ERROR Error: Reanimated 2 failed to create a worklet, maybe you forgot to add Reanimated's babel plugin? · Issue #2774 · soft
Description I did -> yarn add react-native-reanimated@next -> plugins: ['react-native-reanimated/plugin'], -> cd ios && pod install but did not work then I have removed the...
github.com
오류를 구글링해보고 해당 사이트에서 하라는 대로 reanimated의 babel 플러그인을 babel_config.js 파일에 추가해주었다.
추가해준 뒤 여기서 하라는 대로
npx react-native start --reset-cache 커맨드로 캐시를 리셋하고 다시 시작해주었다.
그 다음 react-native run-ios 로 시뮬레이터를 돌려본 결과
역시 영어는 어렵다
728x90
반응형