multiline textinput in react native
<TextInput
style={styles.postInput}
onChangeText={text=> setInput({...input, body:text})}
multiline={true}
numberOfLines={3}
placeholder="Write On the Wall"
underlineColorAndroid='transparent'
require={true}
/>
const styles = StyleSheet.create({
postInput: {
fontSize: 24,
borderColor:'#42435b',
borderWidth:1,
margin:10,
fontFamily: "Outrun future"
}})
4.33
9
Style prop: (React native TextInput)
textAlignVertical: 'top';
Thank you!
9
0
Are there any code examples left?
New code examples in category Javascript