Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/bytesleo/react-native-background-shapes

Backgrounds shapes to React Native based in flex (Android + IOS)
https://github.com/bytesleo/react-native-background-shapes

flex react react-background react-native react-native-component react-native-shapes shapes

Last synced: 13 days ago
JSON representation

Backgrounds shapes to React Native based in flex (Android + IOS)

Awesome Lists containing this project

README

        

# react-native-background-shapes

[![NPM version](https://badge.fury.io/js/react-native-backgroud-shapes.svg)](https://npmjs.org/package/react-native-backgroud-shapes) [![GitHub license](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](https://raw.githubusercontent.com/kevoj/react-native-backgroud-shapes/master/LICENSE)

> Beautiful backgrounds shapes to React Native based in flex (Android + IOS)

### Examples






### Installation

**Yarn**

```bash
yarn add react-native-background-shapes
```

**Npm**

```bash
npm i react-native-background-shapes
```

### Basic usage

```javascript
import react from "react";
import {View} from "react-native";
import {Shapes} from "react-native-background-shapes";

export const example () => {
return (



);
}
```

### Options

```javascript
// Advance

```

- **primaryColor**: String, HEX color.
- **secondaryColor**: String, HEX color.
- **height**: Number, 1 = full screen, default (3.5)
- **borderRadius**: Number, default 30
- **figures**: Array
- - **name**: String = "circle","donut, "triangle", "diamondNarrow", "cutDiamond"
- - **position**: String = "flex-start", "center, "flex-end", "baseline", "stretch"
- - **axis**: String = "top", "right, "bottom", "left"

## License

MIT © [Leonardo Rico](https://github.com/kevoj/react-native-background-shapes/blob/master/LICENSE)