textInput的borderRadius属性在react-native中不起作用。

时间:2016-09-27 12:06:14

标签: react-native

我想在我的react-native应用程序中使用舍入的TextInput但是当我设置其borderRadius属性时它不起作用。建议我这样做。

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

    textInput:{

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

    }

3 个答案:

答案 0 :(得分:3)

View的父[{1}}

上应用边框
TextInput

答案 1 :(得分:2)

在具有borderRadius的TextInput上尝试overflow:"hidden"

答案 2 :(得分:1)

应用以下代码:

Sub test2()
   Dim rn As Integer
   rn = Selection.Row
   dim targetRow as Integer
   targetRow = 2

   do until isEmpty(Worksheets("EC").Cells(targetRow,1).Value)
       targetRow = targetRow +1
   Loop

   With Worksheets("EC")
   .Cells(targetRow, "A").Value = Worksheets("ND").Cells(rn, "A").Value
   .Cells(targetRow, "C").Value = Worksheets("ND").Cells(rn, "B").Value
   .Cells(targetRow, "B").Value = Worksheets("ND").Cells(rn, "D").Value
   .Cells(targetRow, "E").Value = Worksheets("ND").Cells(rn, "E").Value
   .Cells(targetRow, "G").Value = Worksheets("ND").Cells(rn, "H").Value
   End With

End Sub