https://github.com/ui-schema/demo-react-native
A simple React Native app with JSON Schema powered form generation.
https://github.com/ui-schema/demo-react-native
json-schema json-schema-form react-native
Last synced: 5 months ago
JSON representation
A simple React Native app with JSON Schema powered form generation.
- Host: GitHub
- URL: https://github.com/ui-schema/demo-react-native
- Owner: ui-schema
- Created: 2025-08-10T21:18:56.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-08-10T23:26:25.000Z (5 months ago)
- Last Synced: 2025-08-11T01:12:08.928Z (5 months ago)
- Topics: json-schema, json-schema-form, react-native
- Language: TypeScript
- Homepage:
- Size: 159 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UI-Schema React Native
Example app for [UI-Schema React](https://github.com/ui-schema/ui-schema) with [React Native](https://reactnative.dev/) and [Expo](https://expo.dev/).
Includes a custom UI-Schema binding with react-native `string`, `boolean` and `Select` widgets, and a basic multi-screen navigation structure. Check the [src/App.tsx](./src/App.tsx) file for the implementation details.
> [!NOTE]
>
> No experience with Expo/React Native. Without checking best practices or which packages/theme libraries exist.
>
> The preview and build for Android and web platforms were successful.

## Setup
First, clone the repository and navigate into the directory:
```bash
git clone https://github.com/ui-schema/demo-react-native.git
cd demo-react-native
```
Then install dependencies:
```bash
npm install
```
## Running the App
To run the app on your device or simulator:
```bash
npm start
```
To run the web version of the app:
```bash
npm run web
```
Or run the app on Android (you'll need to have an Android emulator or device connected):
```bash
npm run android
```
## Build the App
> For android/ios check the expo docs.
### Web
To build the web version of the app for deployment:
```bash
npx expo export -p web
```
This will create a `dist` directory containing the static web files.
You can run it with a basic `http` docker image like:
On unix:
```bash
docker run -p 8080:80 -v ${PWD}/dist:/usr/local/apache2/htdocs/ httpd:2.4
```
On windows:
```bash
docker run -p 8080:80 -v "%cd%/dist":/usr/local/apache2/htdocs/ httpd:2.4
```
## License
This project is licensed under the MIT License.