
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-native-textarea
Advanced tools
English | 简体中文
React Native textarea component

$ npm install --save react-native-textarea
import Textarea from 'react-native-textarea';
...
<View style={styles.container}>
<Textarea
containerStyle={styles.textareaContainer}
style={styles.textarea}
onChangeText={this.onChange}
defaultValue={this.state.text}
maxLength={120}
placeholder={'好玩有趣的,大家同乐,伤感忧闷的,大家同哭。。。'}
placeholderTextColor={'#c7c7c7'}
underlineColorAndroid={'transparent'}
/>
</View>
...
const styles = StyleSheet.create({
container: {
flex: 1,
padding: 30,
justifyContent: 'center',
alignItems: 'center',
},
textareaContainer: {
height: 180,
padding: 5,
backgroundColor: '#F5FCFF',
},
textarea: {
textAlignVertical: 'top', // hack android
height: 170,
fontSize: 14,
color: '#333',
},
});
| Properties | Descrition | Type | Default |
|---|---|---|---|
| maxLength | limits the maximum number of characters that can be entered | number | 0 |
| containerStyle | custom style | Object | - |
More available
TextareaAPI can be found at react-native TextInput
FAQs
React Native textarea component
The npm package react-native-textarea receives a total of 266 weekly downloads. As such, react-native-textarea popularity was classified as not popular.
We found that react-native-textarea demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.