Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jsonform / react-jsonschema-form (Dynamic Forms from JSON Schema) #998

Open
Nezteb opened this issue Jun 23, 2023 · 1 comment
Open

jsonform / react-jsonschema-form (Dynamic Forms from JSON Schema) #998

Nezteb opened this issue Jun 23, 2023 · 1 comment

Comments

@Nezteb
Copy link

Nezteb commented Jun 23, 2023

I've got a project with a Postgres table with a JSONB column. In this column, there is a JSON Schema for an item/asset/widget. I want to dynamically generate React Native forms for these JSON Schema.

Libraries that do this:

Looking at Expo's package compatibility docs: https://docs.expo.dev/workflow/using-libraries/#determining-third-party-library-compatibility

Now check the following:

  • Does it include an ios and/or android/ directory?
    • No.
  • Does the README mention linking?
    • No.
  • Is it built specifically for Node.js, the web, electron, or another platform?
    • Unsure?
      • jsonform says "The JSON Form library is a JavaScript client-side library...".
      • react-jsonschema-form says "A simple React component capable of building HTML forms...".

I checked the React Native directory and couldn't find anything: https://reactnative.directory/?expo=true&search=json

@Simek
Copy link
Member

Simek commented Jun 23, 2023

Hello @Nezteb, let's start from the beginning. In general, React libraries cannot be used directly with React Native.

The Expo docs you refer to explains how to check if React Native package is compatible with Expo Go (this is also what's the label in the directory means). Every React Native library can be used with Expo leveraging Dev Client feature - https://docs.expo.dev/develop/development-builds/introduction/.

ATM, in directory, we do not have listed any React Native library which could help achieve what you want to, but I was able to find a project on GitHub which might help you:

Will also add it to the directory listing soon.

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

No branches or pull requests

2 participants