by Jpoliachik

Draw triangles in code with React Native

129 Stars 19 Forks Last release: Not found MIT License 31 Commits 9 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


Draw triangles in code with React Native

A class to encapsulate the CSS triangle hack. Based off the output of the triangle generator but modified for React Native syntax.


npm install react-native-triangle --save


import Triangle from 'react-native-triangle';


Sample JSX will produce the triangle below:

alt text

The width and height act as bounds to fit the triangle into.

Supported Directions

  • up
  • right
  • down
  • left
  • up-left
  • up-right
  • down-left
  • down-right

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.