From 3be25d21aee2cc6996c61bf6b65c01394d1902b7 Mon Sep 17 00:00:00 2001 From: William Candillon Date: Fri, 14 Jun 2024 22:12:12 +0200 Subject: [PATCH] =?UTF-8?q?fix(=F0=9F=90=8E):=20Fix=20reanimated=20regress?= =?UTF-8?q?ion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/src/Examples/Video/Video.tsx | 4 ++-- package/src/external/reanimated/useVideoLoading.ts | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/example/src/Examples/Video/Video.tsx b/example/src/Examples/Video/Video.tsx index c8403ad243..e206e205c5 100644 --- a/example/src/Examples/Video/Video.tsx +++ b/example/src/Examples/Video/Video.tsx @@ -49,8 +49,8 @@ export const Video = () => { /> diff --git a/package/src/external/reanimated/useVideoLoading.ts b/package/src/external/reanimated/useVideoLoading.ts index 20e0daae48..e81d368701 100644 --- a/package/src/external/reanimated/useVideoLoading.ts +++ b/package/src/external/reanimated/useVideoLoading.ts @@ -10,11 +10,12 @@ const runtime = Rea.createWorkletRuntime("video-metadata-runtime"); type VideoSource = string | null; export const useVideoLoading = (source: VideoSource) => { + const runOnJS = Rea.runOnJS; const [video, setVideo] = useState