Skip to content

feat(react-native): add functions prop for $computed props#294

Open
vishwa-rippling wants to merge 1 commit into
vercel-labs:mainfrom
vishwa-rippling:feat/react-native-computed-functions
Open

feat(react-native): add functions prop for $computed props#294
vishwa-rippling wants to merge 1 commit into
vercel-labs:mainfrom
vishwa-rippling:feat/react-native-computed-functions

Conversation

@vishwa-rippling
Copy link
Copy Markdown

Summary

  • Add functions to JSONUIProvider and createRenderer in @json-render/react-native, matching @json-render/react: a context supplies ComputedFunction implementations into PropResolutionContext for prop resolution, visibility, bindings, and action params.
  • Document usage in the package README, web API reference (/docs/api/react-native), and the react-native agent skill.

Parity note

@json-render/react also supports directives and uses a different provider nesting order. React Native keeps its existing order and does not add directives in this change.

Test plan

  • pnpm type-check (Node >= 24 per repo engines)
  • Manual: JSONUIProvider / createRenderer with functions and a spec using { "$computed": "name", "args": { ... } } on a standard component (e.g. Paragraph text)

Made with Cursor

Thread named ComputedFunction implementations through JSONUIProvider and
createRenderer into prop resolution, matching @json-render/react. Document
the API on the site and in the package README and react-native skill.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 21, 2026

@vishwa-rippling is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant