A React Native library to easily create an amazing animated loading skeleton placeholder.
npm install react-native-animated-skeletons
or
yarn add react-native-animated-skeletons
Import and use the components you need:
import Skeleton from 'react-native-animated-skeletons';
export default function App() {
return (
<Skeleton
width={100}
height={100}
color="#E1E9EE"
borderRadius={8}
/>;
)
}
Most components come with customizable props such as:
color
- The background color of the skeletonwidth
(number) - The width of the skeleton in pixelsheight
(number) - The height of the skeleton in pixelsduration
(number) - The duration of the animation in millisecondsborderRadius
(number) - Optional border radius for rounded corners
Contributions are welcome! 🚀
If you'd like to:
- Fix a bug
- Suggest a new animated component
- Improve performance or API design
Please open an issue or submit a pull request.
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT