Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Forms builder library for React Native

License

NotificationsYou must be signed in to change notification settings

QuantumBA/tcomb-form-native-builder

Repository files navigation

Build StatusCoverage Status

tcomb-form-native-builder

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.

install

npm install tcomb-form-native-builder

Props

In addition totcomb-form-nativeForm componentprops, it accept the next ones:

  • factories: mapping objectname:Factory of extratcomb-form-native factoriesthat will be possible to use in the form.
  • formats: mapping objectname:validator of extratcomb-json-schema formatsthat will be valid instring fields.
  • 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 formtype description 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 atcombdescription object.
  • types: mapping objectname:type of extratcomb-json-schema typesthat will be possible to use to define the form fields.

Known bugs (akafeatures)

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.

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2026 Movatter.jp