Answers for "multiline textinput in react native"

2

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"
      }})
Posted by: Guest on July-25-2020
0

textinput multiline start from top react native

Style prop: (React native TextInput)
textAlignVertical: 'top';
Posted by: Guest on July-29-2021

Code answers related to "multiline textinput in react native"

Code answers related to "Javascript"

Browse Popular Code Answers by Language