Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
react-native-autogrow-textinput
Advanced tools
A helper component meant to be used as a drop-in replacement for RN TextInput to allow automatic expanding of a multi-line text input according to the number of lines
Install using npm
:
npm i react-native-autogrow-textinput --save
To fix the issue with the height not being set for initial values (or with other cases where the input is not set by the user typing using the keyboard) you need to add the libAutoGrowTextInput
to your project. After performing npm install
, locate AutoGrowTextInput.xcodeproj
in YOUR_PROJECT/node_modules/react-native-autogrow-textinput/ios
and drag it to your own project, then in your target's general settings, add it to the "Linked Frameworks and Libraries".
Import the new component:
import {AutoGrowingTextInput} from 'react-native-autogrow-textinput';
Now use it as you would normally do with a ScrollView
to wrap arround TextInput components:
<AutoGrowingTextInput style={styles.textInput} placeholder={'Your Message'} />
Check out the full example project here.
In the example folder, perform npm install
and then run it from the Xcode project.
FAQs
React Native auto-growing multiline text input
The npm package react-native-autogrow-textinput receives a total of 1,803 weekly downloads. As such, react-native-autogrow-textinput popularity was classified as popular.
We found that react-native-autogrow-textinput demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.