Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-text-input-enhance

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-text-input-enhance

Text Input Enhance to fix clear text value in React Native Text Input

  • 1.0.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-native-text-input-enhance npm version

Demo

Getting started

$ npm install react-native-text-input-enhance --save

Why you should this TextInput

In React Native version 0.54.0 we have bug

  • clear() doesn't work from the second time

#Issue #18272

This issue can fix in the future with this fix #18278

Usage

import RNTextInput from 'react-native-text-input-enhance';

// TODO: What to do with the module?

<TextInput 
  hasRef={ref => (this.textInputRef = ref)} // Use "hasRef" instead of "ref"
  onSubmitEditing={() => this.textInputRef2.focus()} 
/> 
<TextInput hasRef={ref => (this.textInputRef2 = ref)} />

// You can call this fuction in some where to clear text
this.textInputRef.clear();


License

This module is MIT licensed


Keywords

FAQs

Package last updated on 27 Jun 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc