🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

react-native-ui-skel

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-ui-skel

A simple React Native component that implements a Skeleton UI.

1.2.5
latest
Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created

react-native-ui-skel

Alt Text

Note: gift are just examples, and are not syncronius because they were converted

A simple React Native component that implements a Skeleton UI. It will performance your react-native app and you will get more fps ( this library only works in a bare react-native app ).

if you are using expo, please use this lib: react-native-ui-skel-expo

  • Install your skel
npm i react-native-ui-skel
  • install react-native-linear-gradient (if you already have it, jump this step)
npm i react-native-linear-gradient
  • install new pods (only iOS)
npx pod-install

Usage/Examples

import { Skel } from 'react-native-ui-skel'

<View>
    <Skel 
      height={40} 
      width={300}
      styles={{ borderRadius: 4 }}
    />
</View>

Props

NameTypeDefaultDescription
heightnumberrequiredSkel height
widthnumberrequiredSkel width
durationnumber1000 msDuration of the animation
stylesobject{}The style applied to the Skel
backgroundColorstring#EBEFF5The color of the Skel background
backgroundAnimationColorarray['transparent', 'rgba(0,0,0, 0.03)', 'transparent']The color of the Skel animation (this gives UI touch)

Authors

FAQs

Package last updated on 21 Oct 2024

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