Curved bottom on View

前端 未结 4 723
花落未央
花落未央 2020-12-14 12:49

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

4条回答
  •  感情败类
    2020-12-14 13:48

    i use border bottom radius. this is work.

    class Home extends Component {
        render() {
            return (
                
            )
        }
    }
    
    const styles= StyleSheet.create({
        oval: {
            height: 100,
            borderBottomLeftRadius: 50,
            borderBottomRightRadius: 50,
            backgroundColor: 'red'
        },
    });
    

提交回复
热议问题