- Notifications
You must be signed in to change notification settings - Fork1
Forms builder library for React Native
License
QuantumBA/tcomb-form-native-builder
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Forms builder library for React Native
tcomb-form-native-builder offer a React Native component that allow to definea full formulary using JSON to define its fields, validations and behaviour.
npm install tcomb-form-native-builder
In addition totcomb-form-nativeForm componentprops, it accept the next ones:
- factories: mapping object
name:Factoryof extratcomb-form-native factoriesthat will be possible to use in the form. - formats: mapping object
name:validatorof extratcomb-json-schema formatsthat will be valid instringfields. - onSubmit: callback function that will be called by asubmit componentafter the form has been sucessfully send to the server.
- options: explicitly definetcomb-form-native rendering options.Alternatively you can also define them in the form
typedescription and theyboth will be merged. - type: definition of the form fields. Alternatively, you can also set it asthe JSX tag body. It can be a JSON string, a JSON object or a
tcombdescription object. - types: mapping object
name:typeof extratcomb-json-schema typesthat will be possible to use to define the form fields.
If no form description is given (both as prop or as child node), it creates bydefault a singleTextbox (typestring, no format validation). This isbecause we are not defining a structure (just a single value), nor we aredefining its type, so a generic one is being used. This behaviour is provided bythetcomb-json-schema module.
About
Forms builder library for React Native
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.