An open API service indexing awesome lists of open source software.

https://github.com/atull/react-native-shape


https://github.com/atull/react-native-shape

circle demo hexagon javascript mobile react-native shape square triangle ui-components

Last synced: 9 months ago
JSON representation

Awesome Lists containing this project

README

          

# React Native Shape

Custom shapes for React Native apps

This library is truly an inspiration from [The shape of CSS](https://css-tricks.com/the-shapes-of-css/) and the example assets for demonstrating this library are been used from an article on [CodeDaily](https://codedaily.io/tutorials/22/The-Shapes-of-React-Native).

Currently, this library is supporting 9 basic shapes mentioned below.
```bash
Square, Rectangle, Circle, Oval, Triangle, Trapezoid, Pentagon, Hexagon & Octagon.
```

## Demo

![demo](./assets/cWR7FKh.gif)

## Installation

```bash
npm install react-native-shape
```

## Properties

| Name | Type | Default |
|---------------|---------|--------------|
| **color** | String | #1e90ff |
| **rotate** | Int | 0 (in deg) |
| **scale** | Float | 1 |

## Example Usage

```js
import React from 'react';
import { View } from 'react-native';
import { Circle, Triangle } from 'react-native-shape';

export default class App extends React.Component {
render() {
return (




);
}
}
```

## Contributing
Contributions are very welcome for bug fixes & new features

## License

MIT