unable to add border bottom in react native

unable to add border bottom in react native

It seems borderBottom doesnt work for the Text component. You can either add a View wrapper and supply borderBottom to it or add a TextInput and make editable={false}

n

<View style={styles.headerWrapper}>n    <Text style={styles.header}> Registration </Text>n </View>n...nnheaderWrapper: {n    borderBottomColor: red,n    borderBottomWidth: 2,n    marginBottom: 30,n},nheader: {n    fontSize: 36,n    alignSelf: auto,n    color: red,nn},n

unable to add border bottom in react native

Leave a Reply

Your email address will not be published.