React-native-elements 搜索栏忽略样式
React-native-elements searchbar ignoring styles
使用 "expo": "^32.0.0","react-native-elements": "^1.1.0",
在我的组件中我使用 containerStyle
和 inputStyle
但 searchbar 保持不变。我该如何设计它?
<SearchBar
placeholder="Type Here..."
onChangeText={this.updateSearch}
inputStyle={{ backgroundColor: "white" }}
containerStyle={{
backgroundColor: "white",
borderWidth: 1,
borderRadius: 5
}}
placeholderTextColor={"#g5g5g5"}
placeholder={"Pritish Vaidya"}
value={search}
/>
inputContainerStyle={{... }}
就是您要找的
你可以找到更多here
使用 "expo": "^32.0.0","react-native-elements": "^1.1.0",
在我的组件中我使用 containerStyle
和 inputStyle
但 searchbar 保持不变。我该如何设计它?
<SearchBar
placeholder="Type Here..."
onChangeText={this.updateSearch}
inputStyle={{ backgroundColor: "white" }}
containerStyle={{
backgroundColor: "white",
borderWidth: 1,
borderRadius: 5
}}
placeholderTextColor={"#g5g5g5"}
placeholder={"Pritish Vaidya"}
value={search}
/>
inputContainerStyle={{... }}
就是您要找的
你可以找到更多here