Socket
Socket
Sign inDemoInstall

react-native-ewity-forms

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-ewity-forms

**Basic Usage**


Version published
Weekly downloads
2
decreased by-84.62%
Maintainers
1
Install size
49.5 kB
Created
Weekly downloads
 

Readme

Source

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}/>

        
    
    
    
    

Keywords

FAQs

Last updated on 17 Feb 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc