JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 13
  • Score
    100M100P100Q55304F
  • License MIT

This is a simple TextInput

Package Exports

  • @iamkoushik/kp-textinput

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@iamkoushik/kp-textinput) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

KPTextInput

A simple react-native implementation of TextInput.

Features

  • Can be used as a Custom TextInput
  • Custom Styling
  • Supports Password show/hide
  • Supports Label Text as TextInput Label

Image

Installation

npm i @iamkoushik/kp-textinput --save

or

yarn add npm i @iamkoushik/kp-textinput

Usage

import KPTextInput from '@iamkoushik/kp-textinput';

const App = () => {

const [value, setValue] = useState('');

  return (
    <View>
      <KPTextInput
            style={{ height: 48, fontSize: 14, marginTop: 12 }}
            placeholder="Email Address"
            textboxvalue={value}
            type={"email-address"}
            isPassword={false}
            onChangeText={(value) => setValue(value)}
            keyboardType={"default"}
            labelplaceholder="Email Address"
          />

          <KPTextInput
            style={{ height: 48, fontSize: 14, marginTop: 12 }}
            placeholder="Email Address"
            textboxvalue={value}
            type={"email-address"}
            isPassword={false}
            onChangeText={(value) => setValue(value)}
            keyboardType={"default"}
            isShowLabel={false} // Not to show the label text
          />

          <KPTextInput
            style={{ height: 48, fontSize: 14, marginTop: 12 }}
            placeholder="Password"
            textboxvalue={value}
            type={"email-address"}
            isPassword={true} // To show the TextInput as Password field
            onChangeText={(value) => setValue(value)}
            keyboardType={"default"}
            showPassword={true}
            labelplaceholder="Password"
          />
    </View>
  )
}

Contributing

If you'd like to see something added or changed to this module please open a new GitHub issue. Pull requests are always welcome.

License

© Koushik Paul