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

react-native-basic-skeleton

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-basic-skeleton

Basic Skeleton Loader for react-native

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

React Native Basic Skeleton

  • React Native Basic Skeleton

Installation

npm install react-native-basic-skeleton or yarn add react-native-basic-skeleton

Usage

  1. Import react-native-basic-skeleton:
import BasicSkeleton from 'react-native-basic-skeleton';

Props

NameTypeDefaultDescription
visibleboolrequiredShows the Skeleton when true
loadingBackgroundArray[]required ["transparent", "rgba(0,0,0,0.05)", "transparent"]Shows the Skeleton linear color
heightnumberrequired 100Shows the Skeleton bones height
widthnumberrequired 100Shows the Skeleton bones width
durationnumber1000 msDuration of one cycle of animation
styleobjectThe style applied to the View containing
backgroundColorstring required "rgba(0,0,0,0.12)"The style applied to the View containing color

Examples

Note: If react-native-linear-gradient is not installed in the project, you need to install it.

export default function Placeholder () {
  return (
    <BasicSkeleton
    height={200}
    width={200}
    backgroundColor="rgba(0,0,0,0.12)"
    duration={4000}
    loadingBackground={["transparent", "rgba(0,0,0,0.05)", "transparent"]}
    style={{borderRadius: 30}}
    visible={true}>
    />
  )
}

Contribution

Issues are welcome. Please add a screenshot of bug and code snippet. Quickest way to solve issue is to reproduce it on one of the examples.

Pull requests are welcome. If you want to change API or making something big better to create issue and discuss it first.

Keywords

FAQs

Package last updated on 26 Dec 2022

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