오늘의 오류

[react-native에러] Error: Reanimated 2 failed to create a worklet, maybe you forgot to add Reanimated's babel plugin?

애해 2022. 5. 23. 14:37
728x90

# 발생 상황

react-native-reanimated 패키지를 추가하면서 발생

 

 

# 발생 원인

babel.config.js에 reanimated 플러그인을 추가해주지않아서 발생

 

 

# 해결 방안

babel.config.js에 plugins: ['react-native-reanimated/plugin'] 추가 후

 

$ npx react-native start --reset-cache 

해주면 해결 

 

 

반응형