@dangttp/react-native-skeleton
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

@dangttp/react-native-skeleton

Skeleton Loading animation for React Native app. Adopted with new architecture for performance app

Installation

npm install @dangttp/react-native-skeleton

or

yarn add @dangttp/react-native-skeleton

Usage

import SkeletonWrapper from 'react-native-skeleton';

// ...

<SkeletonWrapper isLoading={true} style={{ backgroundColor: 'white' }}>
  {/** Your component's here */}
</SkeletonWrapper>;

Library implements FlatList for showing contents when loading

import {SkeletonFlatList} from 'react-native-skeleton';

// ...

<SkeletonFlatList isLoading={true} {...rest of FlatList props} />

Library also provides HOC implement by using

const NamedComponent = withSkeletonLoading(WrappedComponent);

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

/@dangttp/react-native-skeleton/

    Package Sidebar

    Install

    npm i @dangttp/react-native-skeleton

    Weekly Downloads

    0

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    74.2 kB

    Total Files

    107

    Last publish

    Collaborators

    • dangttp97