Answers for "top left border radius react native"

1

border bottom react native

It seems borderBottom doesn't 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}

<View style={styles.headerWrapper}>
    <Text style={styles.header}> Registration </Text>
 </View>
...

headerWrapper: {
    borderBottomColor: 'red',
    borderBottomWidth: 2,
    marginBottom: 30,
},
header: {
    fontSize: 36,
    alignSelf: 'auto',
    color: 'red',

},
Posted by: Guest on March-16-2021
0

border radius not working ios react native

add
overflow: 'hidden'


Using overflow: 'hidden' on the same element that have borderRadius should fix this issue, I guess..

<Text
style={{
       borderRadius: 5,
       overflow: 'hidden',
       ....
      }}
        >
Posted by: Guest on June-16-2021

Code answers related to "top left border radius react native"

Code answers related to "Javascript"

Browse Popular Code Answers by Language