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

react-native-skeleton-loader-pulse

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-skeleton-loader-pulse

Skeleton Loader Pulse for React Native

  • 1.0.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
44
decreased by-8.33%
Maintainers
1
Weekly downloads
 
Created
Source

React Native Skeleton Loader Pulse Component

Skeleton Loader Pulse for React Native

Demo

Install

npm install react-native-skeleton-loader-pulse

ou

yarn add react-native-skeleton-loader-pulse

Usage

SkeletonItem

import React from "react";
import { SkeletonItem } from "react-native-skeleton-loader-pulse";

export default function Component() {
  return <SkeletonItem />;
}

Props

propertypropTyperequireddefaultdescription
colorstring | undefined-#cccSkeleton color
pulseTimenumber | undefined-1pulse time in seconds
widthstring | number | undefined-100%width container component
heightstring | number | undefined-10pxheight container component
marginTopstring | number | undefined-0margin top component
marginBottomstring | number | undefined-0margin bottom component
marginLeftstring | number | undefined-0margin left component
marginRightstring | number | undefined-0margin right component
borderRadiusnumber | undefined-0border radius component

SkeletonLayout

import React from "react";
import { SkeletonLayout } from "react-native-skeleton-loader-pulse";

export default function Component() {
  return (
    <SkeletonLayout
      align="center"
      items={[
        {
          borderRadius: 50,
          height: 100,
          marginBottom: 15,
          width: 100,
        },
        {
          height: 25,
          marginBottom: 10,
          width: 250,
        },
        {
          height: 10,
          width: 270,
        },
        {
          height: 10,
          width: 300,
        },
        {
          height: 10,
          width: 280,
        },
      ]}
    />
  );
}

Props

propertypropTyperequireddefaultdescription
colorstring | undefined-#cccSkeleton color
pulseTimenumber | undefined-1pulse time
widthstring | number | undefined-100%width container component
direction"column" | "row" | undefined-columnflex-direction of layout
align"center" | "left" | "right" | undefined-leftalign items of layout
itemsItem[]yes-Layout: Array of objects

Props array Item

propertypropTyperequireddefaultdescription
heightnumber | stringyes-height
widthnumber | string | undefined-100%widtt
borderRadiusnumber | undefined-0border radius
marginBottomnumber | string | undefined-3pxmargin bottom
marginTopnumber | string | undefined-3pxmargin top
marginLeftnumber | string | undefined-0margin left
marginRightnumber | string | undefined-0margin right

LICENSE

This project is licensed under the MIT License.

Development by: André Coelho

Keywords

FAQs

Package last updated on 20 Mar 2021

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