
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
react-native-dynamic-skeletons
Advanced tools
React Native Dynamic Skeletons is an easy, customizable, and dynamic solution to create beautiful loading experiences in your React Native apps.
This library provides a simple and intuitive way to create dynamic skeletons that mimic the appearance of your app's content.
The skeletons can be easily customized to match your app's design, and the library provides a wide range of options to create dynamic and engaging loading experiences.
Developed in Typescript, this library is fully compatible with both iOS and Android. And it's also compatible with Expo.
npm install react-native-dynamic-skeletons
or:
yarn add react-native-dynamic-skeletons
import react-native-dynamic-skeletons
import { SkeletonContainer } from 'react-native-dynamic-skeletons';
Wrap your content with SkeletonContainer
export default function App() {
return (
<SkeletonContainer isLoading={true}>
<View
style={{
backgroundColor: 'red',
width: 100,
height: 100,
borderRadius: 50,
}}
/>
<Text>My App</Text>
<Text>Some content</Text>
</SkeletonContainer>
);
}
Prop | Type | Default | Description |
---|---|---|---|
isLoading | boolean | required | Whether the skeleton should be displayed or not. |
animationType | 'leftRight' | 'rightLeft' | 'topBottom' | 'bottomTop' | 'leftRight' | The animation direction. Descripted in the Animation Types section. |
colors | string[] | ['#e1e1e1', '#f2f2f2', '#e1e1e1'] | The colors of the gradient. |
style | ViewStyle | { backgroundColor: '#e1e1e1' } | The style of the skeleton. |
duration | number | 1000 | The duration of the animation in milliseconds. |
The animation type can be one of the following:
Type | Description |
---|---|
leftRight | The skeleton moves from left to right. |
rightLeft | The skeleton moves from right to left. |
topBottom | The skeleton moves from top to bottom. |
bottomTop | The skeleton moves from bottom to top. |
FAQs
React Native Dynamic Skeletons is an easy, customizable, and dynamic solution to create beautiful loading experiences in your React Native apps.
The npm package react-native-dynamic-skeletons receives a total of 225 weekly downloads. As such, react-native-dynamic-skeletons popularity was classified as not popular.
We found that react-native-dynamic-skeletons demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.