🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

rn-loader-container

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rn-loader-container

Adds animated effect to the content, so the app can load whatever is needed.

latest
npmnpm
Version
0.1.13
Version published
Maintainers
1
Created
Source

RN Loader Container

Useful container to show animated views while you get and load the data to display.

Commands

Install the dependency

npm i rn-loader-container

Usage example

import React from 'react';
import LoaderContainer from 'rn-loader-container';
import MockupItem from './components/MockupItem';
import {View} from 'react-native';

// MockupItem is the view to display with the effect inside the container.
const MyListScreen = () => {
  return (
    <View>
      <LoaderContainer total={2}>{MockupItem}</LoaderContainer>
    </View>
  );
}

export default MyListScreen;

Properties

PropDescriptionDefault
totalNumber of items. If the value is greater than 1, the content will be multiplied by that number.1
opacityThe opacity to apply with the animation.0.5
durationAnimation duration in milliseconds.700

Keywords

loader

FAQs

Package last updated on 10 Jan 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