diff --git a/node_modules/react-native-reanimated/lib/typescript/reanimated2/hook/utils.d.ts b/node_modules/react-native-reanimated/lib/typescript/reanimated2/hook/utils.d.ts index 67c921b..cbb6f83 100644 --- a/node_modules/react-native-reanimated/lib/typescript/reanimated2/hook/utils.d.ts +++ b/node_modules/react-native-reanimated/lib/typescript/reanimated2/hook/utils.d.ts @@ -9,7 +9,11 @@ interface Handlers { [key: string]: Handler | undefined; } type useEventType = (handler: (e: T) => void, eventNames?: string[], rebuild?: boolean) => (e: NativeSyntheticEvent) => void; -export declare const useEvent: useEventType; +export declare function useEvent( + handler: T, + events: string[], + rebuild: boolean, +): K; type useHandlerType = >(handlers: Handlers, deps?: DependencyList) => { context: TContext; doDependenciesDiffer: boolean; diff --git a/node_modules/react-native-reanimated/src/reanimated2/mutables.ts b/node_modules/react-native-reanimated/src/reanimated2/mutables.ts index 6c4213d..e3cc49c 100644 --- a/node_modules/react-native-reanimated/src/reanimated2/mutables.ts +++ b/node_modules/react-native-reanimated/src/reanimated2/mutables.ts @@ -94,25 +94,25 @@ export function makeMutable( } 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(() => { mutable.value = modifier(mutable.value);