curve header code example

Example 1: curve header

<View style={styles.parent}>
     <View style={styles.child}>
         <Text>Hello World</Text>
     </View>
</View>

Example 2: curve header

"emmet.includeLanguages": {
    "javascript": "javascriptreact"
  }

Example 3: curve header

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'
    }
})

Tags:

Misc Example