Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
react-native-skelleton
Advanced tools
A skelleton solution done in native view, with it you can wrap any view component to enhance your user experience.
npm install react-native-skelleton
yarn add react-native-skelleton
import SkelletonView from 'react-native-skelleton';
...
render() {
return(
<SkelletonView
color="#00000000"
repeatCount={-1}
repeatMode={1}
duration={1000}
style={{
...style,
backgroundColor: '#C3C3C3',
}}
>
)
}
import SkelletonView, { SkelletonGroupView } from 'react-native-skelleton';
render() {
return (
<SkelletonGroupView
duration={1000}
interpolator="AccelerateDecelerateInterpolator"
style={style}
>
<SkelletonView
color="#888888"
repeatCount={-1}
repeatMode={2}
style={{
...style,
backgroundColor: '#C3C3C3',
}}
/>
</SkelletonGroupView>
)
}
This component accepts any children component class, it will search recursively for the SkelletonView class and animate them.
⚠️ Use this if you to animate a group of skeletons in sync, without it they will not be in sync as the timer is not controlled by the AnimatorSet.
export enum SkelletonRepeatMode {
RESTART = 1,
REVERSE = 2,
}
// default is AccelerateDecelerateInterpolator
export type SkelletonInterpolator =
| 'AccelerateDecelerateInterpolator'
| 'AccelerateInterpolator'
| 'AnticipateInterpolator'
| 'AnticipateOvershootInterpolator'
| 'BounceInterpolator'
| 'CycleInterpolator'
| 'DecelerateInterpolator'
| 'LinearInterpolator'
| 'OvershootInterpolator';
export type SkelletonGroupProps = {
children?: React.ReactElement | React.ReactElement[];
duration?: number;
startDelay?: number;
interpolator?: SkelletonInterpolator;
style?: ViewStyle;
};
export type SkelletonProps = {
children?: React.ReactElement | React.ReactElement[];
color?: string;
autoStart?: boolean;
duration?: number;
startDelay?: number;
repeatDelay?: number;
repeatMode?: SkelletonRepeatMode.RESTART | SkelletonRepeatMode.REVERSE;
repeatCount?: number;
interpolator?: SkelletonInterpolator;
style?: ViewStyle;
};
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
FAQs
A skelleton solution done in native view
The npm package react-native-skelleton receives a total of 0 weekly downloads. As such, react-native-skelleton popularity was classified as not popular.
We found that react-native-skelleton 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.