@dangttp/react-native-skeleton
v1.0.3
Published
React Native Skeleton loading
Downloads
1
Readme
@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