Data Binding examples for React Native are wrong
Nobody has claimed this yet.
- Dominant language
- MDX
- Stars
- 30
- Forks
- 56
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 44
Description
Path: /runtimes/data-binding
As I've explained in this Rive forum post, the documentation for the React Native implementation of Data Binding, such as setting a List Item value, are wrong. There is no ".set" method available. After hours of research, my team has managed to find a solution thanks to this code hidden away: https://github.com/rive-app/rive-nitro-react-native/blob/main/example/src/exercisers/MenuListExample.tsx
The documentation should have proper examples of the implementation of the Rive API, to avoid devs being stranded and unable to set/read values properly. We're mostly highlighting the List issue as this was what we were working on, but probably many React Native code examples should be reviewed.
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 at /runtimes/data-binding and compare the React Native examples with the working implementation in example/src/exercisers/MenuListExample.tsx. Review the linked forum post for the reported setter issue, then check the surrounding React Native examples for the same problem. Done means the documentation shows working Rive API examples for setting and reading values, including List Item values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100