Skip to content
🧡 A collection of simple shapes built with CSS for use as icons, buttons, graphics, etc..
JavaScript
Branch: master
Clone or download
Latest commit 97e399d Aug 12, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src thin chevron Jan 30, 2019
.eslintrc.js added readme and lint Jan 26, 2019
.gitignore added readme and lint Jan 26, 2019
.prettierrc.js added readme and lint Jan 26, 2019
LICENSE added readme and lint Jan 26, 2019
README.md Update README.md Aug 12, 2019
package.json 0.1.0 Feb 11, 2019
yarn.lock added readme and lint Jan 26, 2019

README.md

react-native-shapes

npm version npm downloads

🔻 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

Name Type Description
Color String Changes the color of the shape. Defaults to black.
Rotate Int Rotates the shape clockwise.
Size Float Changes the size of the shape. Defaults to 1.
Style Object Style overrides to spread onto the outer wrapping View

License

react-native-shapes is MIT licensed

You can’t perform that action at this time.