mattermost-mobile/patches/react-native-reanimated+3.1.0.patch
Elias Nahum 784b05fe97
Upgrade Dependencies (#7299)
* upgrade reanimated

* update devDependencies

* upgrade react-intl

* update react-native and some dependencies

* update react-native-permissions

* update RN

* use Share sheet for Report a problem

* update Sentry

* remove step to downloadWebRTC

* update detox deps

* feedback review
2023-04-21 12:16:54 -04:00

49 lines
1.6 KiB
Diff

diff --git a/node_modules/react-native-reanimated/src/reanimated2/mutables.ts b/node_modules/react-native-reanimated/src/reanimated2/mutables.ts
index ec14293..3c34327 100644
--- a/node_modules/react-native-reanimated/src/reanimated2/mutables.ts
+++ b/node_modules/react-native-reanimated/src/reanimated2/mutables.ts
@@ -96,25 +96,25 @@ export function makeMutable<T>(
}
return value;
},
- set _value(newValue: T) {
- if (NativeReanimatedModule.native) {
- throw new Error(
- 'Setting `_value` directly is only possible on the UI runtime'
- );
- }
- value = newValue;
- listeners!.forEach((listener) => {
- listener(newValue);
- });
- },
- get _value(): T {
- if (NativeReanimatedModule.native) {
- throw new Error(
- 'Reading from `_value` directly is only possible on the UI runtime'
- );
- }
- return value;
- },
+ // set _value(newValue: T) {
+ // if (NativeReanimatedModule.native) {
+ // throw new Error(
+ // 'Setting `_value` directly is only possible on the UI runtime'
+ // );
+ // }
+ // value = newValue;
+ // listeners!.forEach((listener) => {
+ // listener(newValue);
+ // });
+ // },
+ // get _value(): T {
+ // if (NativeReanimatedModule.native) {
+ // throw new Error(
+ // 'Reading from `_value` directly is only possible on the UI runtime'
+ // );
+ // }
+ // return value;
+ // },
modify: (modifier: (value: T) => T) => {
runOnUI(() => {
'worklet';