rive-app / rive-app/rive-react-native
Passing incorrect animationName
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 783
- Forks
- 81
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 3
Description
Hi,
This is a very common issue, i dunno if i'm the only one who gets it but,
once you pass the animationName incorrectly to the ref methods, the app is crashing.
In the .riv files sometimes the animation names can be uppercase or camel case, so we need some sort of fix to handle this situation. Like checking or converting both requested and existing animations names to lowercase.
Contributor guide
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 locating the ref methods that consume animationName and inspect how names from .riv files are matched. Reproduce the crash with an incorrectly cased animationName, then verify that valid names with differing case no longer crash and that the relevant tests cover the behavior.
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
- 38/100