Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6214

native base showing additional underline

$
0
0

I am using a simple input component which shows two underlines in an old Android phone.

<View style={styles.newNameFieldContainer}><Item style={styles.inputItem}><Input               placeholder="Bibliothek"              onChangeText={(text) => setLocationName(text)}              style={styles.inputField}              value={locationName}            /></Item></View>
  newNameFieldContainer: {    alignItems: 'center',    height: moderateScale(80),  },  inputItem: {    width: moderateScale(300, 0.3),    borderBottomColor: 'red'  },  inputField: {    fontSize: moderateScale(14),    //width: moderateScale(300, 0.3),    borderBottomColor: 'transparent',  },

The red line on the bottom is from the Item. while the other black line at top is from the Input. How can I fix this?

enter image description here


Viewing all articles
Browse latest Browse all 6214

Trending Articles