rive-app / rive-app/rive-docs

Data Binding examples for React Native are wrong

Open
#454 0 comments 0 reactions 0 assignees View on GitHub

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.