borders style
See original GitHub issueHi,
I’m trying to delete the top, right and left borders of my textInput (so obviously, I’d like to have just the bottom border 😃 ) I tried borderTop : 0 / and ‘transparent’ but it’s not working borderStyle didn’t work either
I get this: https://zupimages.net/viewer.php?id=20/03/6c88.bmp
my code is this:
<Autocomplete
style={styles.inputContainer}
autoCapitalize="none"
autoCorrect={false}
data={this.findAirports(query_arrival)}
defaultValue={this.findAirports(query_start)}
onChangeText={text => this.setState({ query_start: text })}
placeholder="Enter Start airports"
renderItem={({ airport }) => (
<TouchableOpacity
onPress={() => this.setState({ query_start: airport })}
>
<Text style={styles.h2}>{airport}-</Text>
</TouchableOpacity>
)}
/>
</View>
<View style={styles.container}>
<Autocomplete
style={styles.inputContainer}
autoCapitalize="none"
autoCorrect={false}
data={this.findAirports(query_arrival)}
defaultValue={this.findAirports(query_arrival)}
onChangeText={text => this.setState({ query_arrival: text })}
placeholder="Enter Arrival airports"
renderItem={({ airport }) => (
<TouchableOpacity
onPress={() => this.setState({ query_arrival: airport })}
>
<Text style={styles.h2}>{airport}-</Text>
</TouchableOpacity>
)}
/>
with this style:
inputContainer: { borderStyle: ‘dashed’, minWidth: 300, width: “90%”, height: 55, backgroundColor: “transparent”, padding: 5, color: “#6C6363”, fontSize: 18, fontFamily: “Roboto”, borderBottomWidth: 1, borderBottomColor: “rgba(108, 99, 99, .7)” },
If I can get any help that's really nice, thanks for reading and for any help !
Issue Analytics
- State:
- Created 4 years ago
- Comments:6
Top Results From Across the Web
CSS Borders - W3Schools
The border-style property specifies what kind of border to display. The following values are allowed: ... The border-style property can have from one...
Read more >border-style - CSS: Cascading Style Sheets - MDN Web Docs
The border-style shorthand CSS property sets the line style for all four sides of an element's border. Try it. CSS Demo: border-style. Reset....
Read more >CSS - Borders - Tutorialspoint
The border-style Property ... This is a border with none width. This is a solid border. This is a dahsed border. This is...
Read more >Borders | HTML Dog
Borders can be applied to most HTML elements within the body. To make a border around an element, all you need is border-style...
Read more >Borders - web.dev
To set border style on each side of your box, you can use border-top-style , border-right-style , border-left-style , and border-bottom-style . Shorthand...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
you need to set the borderWidth to 0
inputContainerStyle={{ borderWidth: 0, borderBottomWidth: 1 }}
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.