美文网首页ReactNative系列
react-native 三角形样式实现

react-native 三角形样式实现

作者: 我属貔貅的 | 来源:发表于2019-05-21 11:21 被阅读139次

<View  style={styles.triangleViewStyle} />

const styles = StyleSheet.create({

triangleViewStyle:{

        width:0,

        height: 0,

        borderColor: '#2085FF',

        borderLeftWidth:7,

        borderRightWidth:7,

        borderBottomWidth:10,

        marginBottom:0,

    }

});

相关文章

网友评论

    本文标题:react-native 三角形样式实现

    本文链接:https://www.haomeiwen.com/subject/nzpdzqtx.html