From 978e6fe5124855e65471b82ad7b92ece82902527 Mon Sep 17 00:00:00 2001 From: JDMathew Date: Mon, 18 Sep 2023 18:24:50 -0700 Subject: [PATCH 1/3] Add package --- examples/bare/package.json | 1 + examples/bare/yarn.lock | 19 ++++++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/examples/bare/package.json b/examples/bare/package.json index 587fd67a..b1f01c13 100644 --- a/examples/bare/package.json +++ b/examples/bare/package.json @@ -14,6 +14,7 @@ "react": "18.2.0", "react-native": "0.72.4", "react-native-gesture-handler": "^2.12.1", + "react-native-reanimated": "^3.5.2", "react-native-safe-area-context": "^4.7.2", "react-native-screens": "^3.25.0", "react-native-svg": "^13.13.0" diff --git a/examples/bare/yarn.lock b/examples/bare/yarn.lock index 835e4cb5..70b364e4 100644 --- a/examples/bare/yarn.lock +++ b/examples/bare/yarn.lock @@ -770,6 +770,13 @@ "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-numeric-separator" "^7.10.4" +"@babel/plugin-transform-object-assign@^7.16.7": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-assign/-/plugin-transform-object-assign-7.22.5.tgz#290c1b9555dcea48bb2c29ad94237777600d04f9" + integrity sha512-iDhx9ARkXq4vhZ2CYOSnQXkmxkDgosLi3J8Z17mKz7LyzthtkdVchLD7WZ3aXeCuvJDOW3+1I5TpJmwIbF9MKQ== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-transform-object-rest-spread@^7.22.15": version "7.22.15" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.22.15.tgz#21a95db166be59b91cde48775310c0df6e1da56f" @@ -1078,7 +1085,7 @@ "@babel/types" "^7.4.4" esutils "^2.0.2" -"@babel/preset-typescript@^7.13.0": +"@babel/preset-typescript@^7.13.0", "@babel/preset-typescript@^7.16.7": version "7.22.15" resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.22.15.tgz#43db30516fae1d417d748105a0bc95f637239d48" integrity sha512-HblhNmh6yM+cU4VwbBRpxFhxsTdfS1zsvH9W+gEjD0ARV9+8B4sNfpI6GuhePti84nuvhiwKS539jKPFHskA9A== @@ -5890,6 +5897,16 @@ react-native-gesture-handler@^2.12.1: lodash "^4.17.21" prop-types "^15.7.2" +react-native-reanimated@^3.5.2: + version "3.5.2" + resolved "https://registry.yarnpkg.com/react-native-reanimated/-/react-native-reanimated-3.5.2.tgz#c7b4e70ee3210e26e6326d3e43f9299590898c5d" + integrity sha512-Uv9imJ6ZC7F/tTSpjjfo/0AZlw19Lag63+MUqF6p483LOoRkYtYP3JmtVV402mQWfhL1LPMeyAu/1spRjPKCCQ== + dependencies: + "@babel/plugin-transform-object-assign" "^7.16.7" + "@babel/preset-typescript" "^7.16.7" + convert-source-map "^2.0.0" + invariant "^2.2.4" + react-native-safe-area-context@^4.7.2: version "4.7.2" resolved "https://registry.yarnpkg.com/react-native-safe-area-context/-/react-native-safe-area-context-4.7.2.tgz#1673aa99b6a9235e7faaf5a248e69795d6e54e07" From 620fd9a7abc38937ad57c5f20327ee9d4a3ce7a4 Mon Sep 17 00:00:00 2001 From: JDMathew Date: Mon, 18 Sep 2023 18:25:09 -0700 Subject: [PATCH 2/3] Add plugin for reanimated package --- examples/bare/babel.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/bare/babel.config.js b/examples/bare/babel.config.js index f842b77f..19ad035b 100644 --- a/examples/bare/babel.config.js +++ b/examples/bare/babel.config.js @@ -1,3 +1,6 @@ module.exports = { presets: ['module:metro-react-native-babel-preset'], + plugins: [ + 'react-native-reanimated/plugin', // reanimated plugin must be listed last + ] }; From 8205b77af57e583a93139f32a82758b234ddbe09 Mon Sep 17 00:00:00 2001 From: JDMathew Date: Mon, 18 Sep 2023 18:26:08 -0700 Subject: [PATCH 3/3] Add pods for reanimated package --- examples/bare/ios/Podfile.lock | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/examples/bare/ios/Podfile.lock b/examples/bare/ios/Podfile.lock index df3a6be2..1ac1d1af 100644 --- a/examples/bare/ios/Podfile.lock +++ b/examples/bare/ios/Podfile.lock @@ -489,6 +489,35 @@ PODS: - React-perflogger (= 0.72.4) - RNGestureHandler (2.12.1): - React-Core + - RNReanimated (3.5.2): + - DoubleConversion + - FBLazyVector + - glog + - hermes-engine + - RCT-Folly + - RCTRequired + - RCTTypeSafety + - React-callinvoker + - React-Core + - React-Core/DevSupport + - React-Core/RCTWebSocket + - React-CoreModules + - React-cxxreact + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-RCTActionSheet + - React-RCTAnimation + - React-RCTAppDelegate + - React-RCTBlob + - React-RCTImage + - React-RCTLinking + - React-RCTNetwork + - React-RCTSettings + - React-RCTText + - ReactCommon/turbomodule/core + - Yoga - RNScreens (3.25.0): - React-Core - React-RCTImage @@ -564,6 +593,7 @@ DEPENDENCIES: - React-utils (from `../node_modules/react-native/ReactCommon/react/utils`) - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) - RNGestureHandler (from `../node_modules/react-native-gesture-handler`) + - RNReanimated (from `../node_modules/react-native-reanimated`) - RNScreens (from `../node_modules/react-native-screens`) - RNSVG (from `../node_modules/react-native-svg`) - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) @@ -667,6 +697,8 @@ EXTERNAL SOURCES: :path: "../node_modules/react-native/ReactCommon" RNGestureHandler: :path: "../node_modules/react-native-gesture-handler" + RNReanimated: + :path: "../node_modules/react-native-reanimated" RNScreens: :path: "../node_modules/react-native-screens" RNSVG: @@ -727,6 +759,7 @@ SPEC CHECKSUMS: React-utils: b79f2411931f9d3ea5781404dcbb2fa8a837e13a ReactCommon: 4b2bdcb50a3543e1c2b2849ad44533686610826d RNGestureHandler: c0d04458598fcb26052494ae23dda8f8f5162b13 + RNReanimated: 2491645f0883526f4470d8b5c761308709ba31f8 RNScreens: 85d3880b52d34db7b8eeebe2f1a0e807c05e69fa RNSVG: ed492aaf3af9ca01bc945f7a149d76d62e73ec82 SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17