Shopify / Shopify/react-native-skia

useVideo Causes Hot Reload Crash On Fresh Expo App

Open
#2,878 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
8.6k
Forks
647
Avg merge
1d 17h
Merged PRs (30d)
35

Description

Description

Hot reloading is causing an app crash with useVideo. No Error Logs. I have tried with a local asset using expo-asset still causing a crash on hot reload.

export default function HomeScreen() {
  const video = useVideo(
    'https://file-examples.com/storage/fe602ed48f677b2319947f8/2017/04/file_example_MP4_480_1_5MG.mp4',
    {
      looping: true,
    },
  )
  return <View/>
}
React Native Skia Version

^1.8.2

React Native Version

0.76.5

Using New Architecture
  • Enabled
Steps to Reproduce

Fresh Expo Install
Latest RN Skia Install
Implement useVideo hook
Add a log or text to force hot reload.
Crash

Snack, Code Example, Screenshot, or Link to Repository
export default function HomeScreen() {
  const video = useVideo(
    'https://file-examples.com/storage/fe602ed48f677b2319947f8/2017/04/file_example_MP4_480_1_5MG.mp4',
    {
      looping: true,
    },
  )
  return <View/>
}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the crash from the useVideo hook in a fresh Expo app with React Native 0.76.5, React Native Skia 1.8.2, and the new architecture enabled. Test the listed remote video and a local expo-asset while triggering hot reload; done means hot reload no longer crashes the app and the behavior is covered by a regression test if the project provides one.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.