npm

Share private packages across your team with npm Orgs, now with simplified billing via the aws marketplace!Learn more »

react-native-ewity-forms

1.0.5 • Public • Published

Basic Usage

import Form from 'react-native-ewity-forms';

const fields = [
                                {
                                    name: 'country',
                                    type: 'select',
                                    placeholder: "Please select Country",
                                    initialValue: "mv",
                                    api: AppService.countries,
                                    //values: [{label: "Maldives", value: "mv"}]
                                    label: 'Country',
                                    onChange: this.resetUuid,
                                },
                                 {
                                    name: 'gender',
                                    type: 'text',
                                    label: 'Gender',
                                    type: 'radio',
                                    values: [
                                                {label: "Female", value: "f"},
                                                {label: "Male", value: "m"}
                                            ]
                                                                    },
                                {
                                    name: 'card_number',
                                    type: 'text',
                                    label: 'Number',
                                },
                                {
                                    name: 'mobile',
                                    type: 'text',
                                    keyboardType: 'phone-pad',
                                    label: 'Mobile Number',
                                    onChange: this.resetUuid,
                                },
                                this.state.uuid && {
                                    name: 'otp',
                                    type: 'text',
                                    keyboardType: 'number-pad',
                                    label: 'OTP'
                                }
                            ];
    <Form
        onChange={formData => this.setState({formData: formData})}
        fields={fields}/>

install

npm i react-native-ewity-forms

Downloadsweekly downloads

10

version

1.0.5

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability