Socket
Socket
Sign inDemoInstall

@vivintsolar-oss/native-vs-input

Package Overview
Dependencies
3
Maintainers
9
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @vivintsolar-oss/native-vs-input

Input for VSLR UI kit


Version published
Maintainers
9
Created

Readme

Source

@vivintsolar-oss/native-vs-input

yarn add @vivintsolar-oss/native-vs-input
// or
// npm install @vivintsolar-oss/native-vs-input

VSInput

Our input field adds some useful state changes along with keeping the look and feel consistent across multiple native apps.

import VSInput from '@vivintsolar-oss/native-vs-input';

  <VSInput
    password
    label="Password"
    reference={ (input) => {
      this.passwordInput = input;
    } }
    error={ this.state.error }
    autoCorrect={ false }
    onChangeText={ this.onPasswordChange }
    onSubmitEditing={ this.submit }
    returnKeyType="send"
    defaultValue={ this.state.password }
  />

Props

NameDefaultTypeDescription
labellabelstringThe text for your label
referencefunctionRef function used to hoist state
infobooleanShows the info state
infoTestIDstringValue applied to the testID prop of an info button
infoAccessibilityLabelstringValue applied to the accessibilityLabel prop of an info button
errorstringThe error message displayed & shows error state
passwordbooleanShows the password state
togglefunctionUsed to toggle state for more info icon (like a modal/alert)

You can also add any other props available to the react native TextInput component

FAQs

Last updated on 29 Nov 2018

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