Coder Social home page Coder Social logo

trendingtechnology / react-native-background-shapes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kevoj/react-native-background-shapes

0.0 2.0 0.0 156 KB

Beautiful backgrounds shapes to React Native based in flex

License: MIT License

HTML 4.68% JavaScript 95.32%

react-native-background-shapes's Introduction

react-native-background-shapes

NPM version GitHub license

Beautiful backgrounds shapes to React Native based in flex

Examples

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

react-native-background-shapes's People

Contributors

kevoj avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.