0.1.0 ā€¢ Published 5 years ago

react-native-shapes v0.1.0

Weekly downloads
767
License
MIT
Repository
github
Last release
5 years ago

react-native-shapes

npm version

šŸ”» A collection of simple shapes built with CSS for use as icons, buttons, graphics, etc..

View example on snack.expo.io

Getting Started

Installing

npm install react-native-shapes

Usage

import { Chevron, Heart, Triangle } from 'react-native-shapes'

Shapes

  • Chevron (also supports type prop of thin (default) or thick)
  • Heart
  • Triangle (also supports type prop of equilateral (default) or isosceles)

Props

NameTypeDescription
ColorStringChanges the color of the shape. Defaults to black.
RotateIntRotates the shape clockwise.
SizeFloatChanges the size of the shape. Defaults to 1.
StyleObjectStyle overrides to spread onto the outer wrapping View

License

react-native-shapes is MIT licensed