pmndrs / pmndrs/react-spring

[bug]: Crash to white screen

Open
#2,371 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: core kind: bug
Dominant language
TypeScript
Stars
29.1k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Which react-spring target are you using?
  • @react-spring/web
  • @react-spring/three
  • @react-spring/native
  • @react-spring/konva
  • @react-spring/zdog
What version of react-spring are you using?

10.0.0

What's Wrong?

I'm trying to use react-spring in an Expo React Native app however the app crashes to white screen as soon as I open it.

To Reproduce
  1. I installed @react-spring/native
  2. I imported import { useSpring, animated } from "@react-spring/native";
  3. Add useSpring to a component
  4. App crashes with white screen.
Expected Behaviour

App shouldn't crash.

Link to repo

https://github.com/leo-petrucci/react-spring-native-bug/tree/master

Contributor guide

Open the contributing guide

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

Use the linked reproduction repository as the starting point and inspect the @react-spring/native import and the component where useSpring is added. Reproduce the Expo React Native crash with react-spring 10.0.0, then confirm the app opens without a white screen.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.