1.0.2 • Published 8 months ago

modified-text-input v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

ModifiedTextinput

npm - modified-text-input

Better textinput component for react native that waits for state value to change before updating whats shown on screen

Usage

Use the component the same way you would use a normal textinput component.

Installation

npm install modified-text-input --save

Example

With TextInput

Alt Text

With ModifiedTextInput

Alt Text

You can see that without ModifiedTextInput, the text jitters as the state attempts to keep up with the key presses. With ModifiedTextInput, the text is only updated when the state is updated, so the text is always in sync with the state.

Limitations

This library will not be receiving any more support, and this is a pretty hacky solution anyways. I recommend reading the code and modifying it for your use case. If you do make improvements, please make a pull request so others can benefit from your changes.

There is currently no support for selection.

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

10 months ago