React NativeでTextInputを使用しています。コンポーネントに境界線を追加しようとすると、色付きの境界線の上に常に正方形の黒い境界線があります。私は私の色の境界線を削除するとReact Native TextInputは常に黒い境界線を持っています
は、コンポーネントは次のようになります。ここでは
は私のコードです:<TextInput
returnKeyType="search"
style={searchStyle.searchInput}
onChangeText={(text) => this.setState({text})}
placeholder={this.state.searchText}
onSubmitEditing={(event) => this.searchLocationSubmit(event)}
/>
const searchStyle = StyleSheet.create({
searchInput : {
height: 35,
color: '#64AFCB',
borderColor: '#64AFCB',
borderWidth: 1,
borderStyle: 'solid',
borderRadius: 15,
width: 200,
marginLeft: 10,
marginTop: 10,
backgroundColor: 'white',
position: 'absolute',
zIndex: 2
}
})