diff --git a/package/src/external/reanimated/useVideoLoading.ts b/package/src/external/reanimated/useVideoLoading.ts index e81d368701..58c64b68df 100644 --- a/package/src/external/reanimated/useVideoLoading.ts +++ b/package/src/external/reanimated/useVideoLoading.ts @@ -1,4 +1,4 @@ -import { useEffect, useState } from "react"; +import { useCallback, useEffect, useState } from "react"; import type { Video } from "../../skia/types"; import { Skia } from "../../skia"; @@ -10,17 +10,20 @@ const runtime = Rea.createWorkletRuntime("video-metadata-runtime"); type VideoSource = string | null; export const useVideoLoading = (source: VideoSource) => { - const runOnJS = Rea.runOnJS; + const { runOnJS } = Rea; const [video, setVideo] = useState