@7factor/react-native-form-builder 中文文档教程
react-native-form-builder
在您的 react-native 应用程序中呈现您在 form-builder.io 创建的自定义表单。
Installation
yarn add @7factor/react-native-form-builder react-native-webview
Usage
import Form from "react-native-form-builder";
return () => <Form
id="THE_ID_OF_YOUR_FORM"
initialValues={{
name: "value"
}}
disableFields={['id']}
hideSubmit={false}
onSubmit={ (values) => /* Do Something */ }
/>
Property | Default Value | Required ? | Function |
---|---|---|---|
id | none | yes | This is the id of the form to render, found in your form URL |
initialValues | none | no | Use this to default any values in your form. |
disableFields | none | no | Use this array of strings, the name of each field, to prevent the user from editing them. |
hideSubmit | false | no | Optionally hide the submit button for readonly viewing. |
onSubmit | none | no | Use this to prevent the submission on Form-Builder and instead handle it locally within your applicatoin |
Contributing
请参阅贡献指南以了解如何为存储库和开发工作流程做出贡献。
License
麻省理工学院
react-native-form-builder
Render your custom forms created at form-builder.io in your react-native application..
Installation
yarn add @7factor/react-native-form-builder react-native-webview
Usage
import Form from "react-native-form-builder";
return () => <Form
id="THE_ID_OF_YOUR_FORM"
initialValues={{
name: "value"
}}
disableFields={['id']}
hideSubmit={false}
onSubmit={ (values) => /* Do Something */ }
/>
Property | Default Value | Required ? | Function |
---|---|---|---|
id | none | yes | This is the id of the form to render, found in your form URL |
initialValues | none | no | Use this to default any values in your form. |
disableFields | none | no | Use this array of strings, the name of each field, to prevent the user from editing them. |
hideSubmit | false | no | Optionally hide the submit button for readonly viewing. |
onSubmit | none | no | Use this to prevent the submission on Form-Builder and instead handle it locally within your applicatoin |
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
更多
你可能也喜欢
- 1n1t 中文文档教程
- 58-house-rn-unit 中文文档教程
- @0655-dev/typescript-package-template 中文文档教程
- @0x-klaytn/web3-wrapper 中文文档教程
- @128technology/authenticate-pam-prebuilt 中文文档教程
- @3scarecrow/vue-filter-table 中文文档教程
- @4c/tsconfig 中文文档教程
- @8base/create-apollo-client 中文文档教程
- @8base/react-native-auth0-auth-client 中文文档教程
- @8pattern/jlogger 中文文档教程