📌  相关文章
📜  react-native 曲线视图 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:36.888000             🧑  作者: Mango

代码示例1
import React from 'react';
import {View, StyleSheet} from 'react-native';

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

const MyCurvedView = () => {
    return (
        
            
              //Content of the curved view
              
          
    );
}

export default MyCurvedView;