1.2.10 • Published 5 years ago

@vivintsolar-oss/native-vs-input v1.2.10

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@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

1.2.10

5 years ago

1.2.7

6 years ago

1.2.5

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago