1.0.3 • Published 2 years ago

@dangttp/react-native-skeleton v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@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

1.0.3

2 years ago

1.0.2

2 years ago