Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

borderRadius property of TextInput not working in react-native.

Tags:

react-native

I want to use rounded TextInput in my react-native application but when I am setting its borderRadius property its not working. Suggest me way to do that.

    <TextInput  placeholder="Email" style={styles.textInput} />

    textInput:{

    borderColor:'black',
    backgroundColor:'#D3D3D3',
    width:300,
    borderWidth: 1,
    borderStyle: 'solid',
    fontSize:15,
    borderRadius: 25,

    }
like image 224
coderzzz18 Avatar asked Dec 05 '22 16:12

coderzzz18


1 Answers

Try overflow:"hidden" on the TextInput that has borderRadius.

like image 140
Anjal Saneen Avatar answered Jun 19 '23 17:06

Anjal Saneen