Hasan Setiawan

Write, write, write give your wings on code!

Follow me on GitHub

React Native Draw Triangle

Basicaly we just use border line manipulation.

            
var Triangle = React.createClass({
  render: function() {
    return (
      
    )
  }
})
  triangle: {
    width: 0,
    height: 0,
    backgroundColor: 'transparent',
    borderStyle: 'solid',
    borderLeftWidth: 50,
    borderRightWidth: 50,
    borderBottomWidth: 100,
    borderLeftColor: 'transparent',
    borderRightColor: 'transparent',
    borderBottomColor: 'red'
  }