CSS Triangles in React Native

前端 未结 4 1872
Happy的楠姐
Happy的楠姐 2021-02-12 14:28

\"triangle\"

I\'m working on an app that uses triangles that overlay other containers/divs. Had that solved with CS

4条回答
  •  执念已碎
    2021-02-12 14:33

    The best way to do this is to create an component and absolutely position it, similar to how you would a pure CSS triangle. If the triangle has a flat color, as opposed to a gradient or other pattern, you can set its color using the tintColor style property.

    Example:

    
    

提交回复
热议问题