镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

About

🧡 A collection of simple shapes built with CSS for use as icons, buttons, graphics, etc..

Topics

Resources

Stars

13 stars

Watchers

0 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

Repository files navigation

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

About

🧡 A collection of simple shapes built with CSS for use as icons, buttons, graphics, etc..

Topics

Resources

Stars

13 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages