Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.05 KB

File metadata and controls

54 lines (36 loc) · 1.05 KB

@fidisys/skeleton-loader

This component can show animated svg skeleton loader as a content placeholder.

Demo

Getting Started

  1. react-native-svg
 npm i --save react-native-svg

Installation

npm i @fidisys/skeleton-loader --save


Usage

import SkeletonLoader from '@fidisys/skeleton-loader'

Examples

<SkeletonLoader
  loading={this.state.isLoading}
  aspectRatio={0.75}>
    <Text>Card Content</Text>
</SkeletonLoader>

Props

Prop Type Default Description
loading boolean false boolean value to show/hide skeleton loader
aspectRatio number 0.75 React native View aspect ratio for scaling Svg

License

MIT