Hello from React Native Reanimated | React Native Reanimated
Description will go into a meta tag in <head />
docs.swmansion.com
환경 정보
node | 16.6.1 |
react | 18.0.0 |
react-native-gesture-handler | 2.5.0 |
react-native-reanimated | 2.8.0 |
에러
yarn add react-native-reanimated
- react-navigation drawer 의 의존 패키지인 react-native-reanimated 설치때 발생함
# 1
Reanimated 2 failed to create a worklet, maybe you forgot to add Reanimated's babel plugin?
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 app and rebuild and rest...
github.com
// babel.config.js
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: ['react-native-reanimated/plugin'], // add
};
yarn react-native start --reset-cache
ios 는 해결 완료, 그러나 android 에서 추가적인 에러 발생
# 2
What went wrong: A problem occurred evaluating project ':react-native-reanimated'.
Could not get unknown property 'rnMinorVersion' for project ':react-native-reanimated' of type org.gradle.api.Project.
Build file '/Users/ - /My/RN/drawer_Navigator/node_modules/react-native-reanimated/android/build.gradle' line: 152
at makeError (/Users/-/My/RN/drawer_Navigator/node_modules/execa/index.js:174:9)
at /Users/-/My/RN/drawer_Navigator/node_modules/execa/index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (/Users/-/My/RN/drawer_Navigator/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)
at async Command.handleAction (/Users/-/My/RN/drawer_Navigator/node_modules/@react-native-community/cli/build/index.js:192:9)
Cannot build project with RN 0.69.0 , Could not get unknown property 'rnMinorVersion' · Issue #3310 · software-mansion/react-n
Description react-native-reanimated throws error "Could not get unknown property 'rnMinorVersion' for project ':react-native-reanimated' of type org.gradle.api.Project" Expected behavior Should bui...
github.com
- node_modules/react-native-reanimated/android/build.gradle 에서 150 근처 라인 $rmMinorVersion 을 $rmMinorVersionCopy 로 변경 한다.
- 해당 버전 에서 현재 이슈가 존재한다.
There might be incorrect information or outdated content.
'App > React Native' 카테고리의 다른 글
[React-Native] react-native-screens ( android ) 설치 후 빌드 이슈🔥 (0) | 2023.07.31 |
---|---|
[React-Native] 기본적인 빌드 이슈🔥 (0) | 2023.07.31 |