Shopify / Shopify/react-native-skia
useVideo Causes Hot Reload Crash On Fresh Expo App
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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