Skip to content

Commit

Permalink
Merge pull request #52518 from Expensify/revert-52048-chore/bump-rean…
Browse files Browse the repository at this point in the history
…imated-v0

[CP Staging] Revert "[NoQA] Bump reanimated to v3.16.1"
  • Loading branch information
yuwenmemon authored Nov 14, 2024
2 parents 99da1ac + f35a959 commit b99e6d3
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
"react-native-plaid-link-sdk": "11.11.0",
"react-native-qrcode-svg": "6.3.11",
"react-native-quick-sqlite": "git+https://github.com/margelo/react-native-quick-sqlite#99f34ebefa91698945f3ed26622e002bd79489e0",
"react-native-reanimated": "3.16.1",
"react-native-reanimated": "3.15.3",
"react-native-release-profiler": "^0.2.1",
"react-native-render-html": "6.3.1",
"react-native-safe-area-context": "4.10.9",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
diff --git a/node_modules/react-native-reanimated/scripts/reanimated_utils.rb b/node_modules/react-native-reanimated/scripts/reanimated_utils.rb
index 9fc7b15..e453d84 100644
index af0935f..ccd2a9e 100644
--- a/node_modules/react-native-reanimated/scripts/reanimated_utils.rb
+++ b/node_modules/react-native-reanimated/scripts/reanimated_utils.rb
@@ -17,7 +17,11 @@ def find_config()
:react_native_reanimated_dir_from_pods_root => nil,
:react_native_common_dir => nil,
}

- react_native_node_modules_dir = File.join(File.dirname(`cd "#{Pod::Config.instance.installation_root.to_s}" && node --print "require.resolve('react-native/package.json')"`), '..')
Expand Down
15 changes: 15 additions & 0 deletions patches/react-native-reanimated+3.15.3+003+fixNullViewTag.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/node_modules/react-native-reanimated/src/createAnimatedComponent/createAnimatedComponent.tsx b/node_modules/react-native-reanimated/src/createAnimatedComponent/createAnimatedComponent.tsx
index 577b4a7..c60f0f8 100644
--- a/node_modules/react-native-reanimated/src/createAnimatedComponent/createAnimatedComponent.tsx
+++ b/node_modules/react-native-reanimated/src/createAnimatedComponent/createAnimatedComponent.tsx
@@ -481,7 +481,9 @@ export function createAnimatedComponent(
? (ref as HTMLElement)
: findNodeHandle(ref as Component);

- this._componentViewTag = tag as number;
+ if (tag !== null) {
+ this._componentViewTag = tag as number;
+ }

const { layout, entering, exiting, sharedTransitionTag } = this.props;
if (

0 comments on commit b99e6d3

Please sign in to comment.