Files
iNaturalistReactNative/patches/react-native+0.83.10.patch
T
Johannes KleinandJohannes Klein 71ff86521c Update react-native to 0.83.10 (#3821)
* Update package.json

* Update package-lock.json

* Update Podfile.lock

* Update patch name

---------

Co-authored-by: Johannes Klein <17345891+jtklein@users.noreply.github.com>
2026-07-10 23:07:13 +02:00

45 lines
2.1 KiB
Diff

diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js
index 98a91dc..0792630 100644
--- a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js
+++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js
@@ -2017,8 +2017,15 @@ __DEV__ &&
(isDeeplyEqual = !1));
for (var _key in next)
if (_key in prev) {
- var key = prev[_key];
- var nextValue = next[_key];
+ // https://github.com/realm/realm-js/issues/7086
+ // https://github.com/facebook/react/issues/35126
+ var key, nextValue;
+ try {
+ key = prev[_key];
+ nextValue = next[_key];
+ } catch (e) {
+ continue;
+ }
if (key !== nextValue) {
if (0 === indent && "children" === _key)
(isDeeplyEqual = "\u00a0\u00a0".repeat(indent) + _key),
diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js
index 030ef4d..2a67ffe 100644
--- a/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js
+++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js
@@ -2433,8 +2433,15 @@ __DEV__ &&
(isDeeplyEqual = !1));
for (var _key in next)
if (_key in prev) {
- var key = prev[_key];
- var nextValue = next[_key];
+ // https://github.com/realm/realm-js/issues/7086
+ // https://github.com/facebook/react/issues/35126
+ var key, nextValue;
+ try {
+ key = prev[_key];
+ nextValue = next[_key];
+ } catch (e) {
+ continue;
+ }
if (key !== nextValue) {
if (0 === indent && "children" === _key)
(isDeeplyEqual = "\u00a0\u00a0".repeat(indent) + _key),