Introduction
MUI Native Forms is a react-native javascript library to build beautiful material forms for mobile.
Features
- Material UI components
- Icon support by default
- Validation out of the box
Basic example: A Login Form
- Define schema
{ "fields": [{ "name": "email", "meta": { "displayName": "Email", "displayType": "email" } }, { "name": "password", "meta": { "displayName": "Password", "displayType": "password" } }]}
- Import and use
import MuiNativeForms from "mui-native-forms";function MyForm() { return ( <MuiNativeForms schema={schema} onSubmit={(data) => { // handle submit }} /> )}
Built using
- React native paper (https://reactnativepaper.com/)