New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-auto-grow-textinput

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-auto-grow-textinput - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

package.json
{
"name": "react-native-auto-grow-textinput",
"version": "1.1.0",
"version": "1.1.1",
"description": "This component allows to create auto grow text input for both platforms (iOS and Android).",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -10,2 +10,3 @@ // @flow

} from 'react-native';
import _ from 'lodash';

@@ -45,3 +46,14 @@ type Props = {

render() {
const newProps = Object.assign({}, this.props);
const newProps = _.omit({
...this.props,
...Platform.select({
ios: {
onContentSizeChange: this._onContentSizeChange,
},
android: {
onChange: this._onContentSizeChange
},
}),
}, [ 'style', 'maxLines' ]);
const externalStyle = this.props.style;

@@ -52,5 +64,2 @@ const textInputStyle = {

delete newProps['style'];
delete newProps['maxLines'];
return (

@@ -61,3 +70,2 @@ <TextInput

underlineColorAndroid='transparent'
onContentSizeChange={ this._onContentSizeChange }
style={[ externalStyle, textInputStyle ]}

@@ -64,0 +72,0 @@ />

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