Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-background-shapes

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-background-shapes

Beautiful backgrounds shapes to React Native based in flex

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-native-background-shapes

NPM version GitHub license

Beautiful backgrounds shapes to React Native based in flex

Examples

Imgur Imgur Imgur Imgur

Installation

Yarn

yarn add react-native-background-shapes

Npm

npm i react-native-background-shapes

Usage

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

export const example () => {
return (
    <View>
        <Shapes />
    </View>
    );
}

Options

// Basic
 <Shapes />
// Advance
 <Shapes 
    primaryColor="#416DF8"
    secondaryColor="#2F53D5"
    height={3}
    borderRadius={20}
    figures={[
      {name: 'circle', position: 'center', size: 60},
      {name: 'donut', position: 'flex-start', axis: 'top', size: 80},
      {name: 'circle', position: 'center', axis: 'right', size: 100},
    ]}
 />

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

Keywords

FAQs

Package last updated on 26 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc