How can i add the curved bottom to a View in react-native? See curved example
I\'f tried to a add an second view like this:
headerBottom: { width: width
I don't know whether this is a proper way or not. However this works for me and hope this will help someone.
Hello World
Insert your code to child View
const styles = StyleSheet.create({
parent : {
height : '80%',
width : '100%',
transform : [ { scaleX : 2 } ],
borderBottomStartRadius : 200,
borderBottomEndRadius : 200,
overflow : 'hidden',
},
child : {
flex : 1,
transform : [ { scaleX : 0.5 } ],
backgroundColor : 'yellow',
alignItems : 'center',
justifyContent : 'center'
}
})