diff --git a/packages/animated/src/withAnimated.tsx b/packages/animated/src/withAnimated.tsx index d26fa6166..f2fcdf6cb 100644 --- a/packages/animated/src/withAnimated.tsx +++ b/packages/animated/src/withAnimated.tsx @@ -68,6 +68,7 @@ export const withAnimated = (Component: any, host: HostConfig) => { const observerRef = useRef(null) useIsomorphicLayoutEffect(() => { + // @ts-expect-error useRef immutable in 18.3 types observerRef.current = observer // Observe the latest dependencies. diff --git a/packages/shared/src/hooks/useMemoOne.ts b/packages/shared/src/hooks/useMemoOne.ts index a06b84d05..2ceac60a6 100644 --- a/packages/shared/src/hooks/useMemoOne.ts +++ b/packages/shared/src/hooks/useMemoOne.ts @@ -33,6 +33,7 @@ export function useMemoOne(getResult: () => T, inputs?: any[]): T { } useEffect(() => { + // @ts-expect-error useRef immutable in 18.3 types committed.current = cache if (prevCache == initial) { initial.inputs = initial.result = undefined