question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi,

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:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
KiranC10commented, Feb 27, 2020

you need to set the borderWidth to 0

inputContainerStyle={{ borderWidth: 0, borderBottomWidth: 1 }}

0reactions
stale[bot]commented, Apr 14, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found