2016-09-27 7 views
1

반 반응하는 네이티브 응용 프로그램에서 둥근 TextInput을 사용하려고하지만 borderRadius 속성을 설정하면 작동하지 않습니다. 저에게 할 수있는 방법을 제안하십시오.textInput의 borderRadius 속성이 react-native에서 작동하지 않습니다.

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

    textInput:{ 

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

    } 

답변

2

borderRadius이있는의 TextInput에 overflow:"hidden"을 시도 TextInput

<View style={styles.borderStyle}> 
<TextInput placeholder="Email" style={styles.textInput} /> 
</View> 
+0

나는 그것을했다. 하지만 반응 네이티브의 버튼에서 작동하지만 textInput의 borderRadius 속성이 작동하지 않는 이유는 무엇입니까 ?? @ Shukarullah Shahh –

0

의 부모, View에 테두리를 적용합니다.

관련 문제