Socket
Socket
Sign inDemoInstall

react-native-input-outline

Package Overview
Dependencies
0
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-input-outline

Performant React Native Text Inputs


Version published
Maintainers
1
Created

Readme

Source

react-native-input-outline

I built this library because of all the performance issues I noticed in other TextInput libraries I noticed. This library is extremely performant thanks to Reanimated v2, and I'm very proud of it.

Performant React Native Text Inputs built with Reanimated 2.

Installation

yarn add react-native-reanimated@2.0.0-rc.0 react-native-input-outline

Reanimated v2 is required for this library to work.

Usage

import { InputOutline } from 'react-native-input-outline';

<InputOutline />;

All vanilla ReactNative TextInput Props are supported as well as others configured from this library shown below.

Props

PropDesriptionDefaultType
TextInput PropsInherited PropsTextInput Props
placeholderThe string that will be rendered before text input has been entered.string
fontSizeFont size for TextInput.14number
paddingVerticalVertical padding for TextInput Container. Used to calculate animations.12number
paddingHorizontalHorizontal padding for TextInput Container.16number
activeColorColor when focused.'blue'string
inactiveColorColor when blurred (not focused).'black'string
errorColorColor that is displayed when in error state.'red'string
errorError message to be displayed. If anything is provided to error besided null or undefined, then the component is within an error state, thus displaying the error message provided here and errorColor.'red'string

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Keywords

FAQs

Last updated on 08 Mar 2021

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