Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
lottie-loader-react-native-tester
Advanced tools
A React Native Loader Component which uses Airbnb's Lottie to render smooth and beautiful loading animations.
A React Native Loader Component which uses Airbnb's Lottie to render smooth and beautiful loading animations, without blocking the entire view.
npm i -S lottie-loader-react-native
If you're using React Native CLI you will need to link lottie-react-native to your package. Click here for more information.
If you're using expo no extra step is required.
import React from "react";
import { StyleSheet, StyleProp, ViewStyle } from "react-native";
import { LottieLoader } from "lottie-loader-react-native";
interface LoadingProps {
visible: boolean;
animationStyle?: StyleProp<ViewStyle>;
}
export const Loading: React.FC<LoadingProps> = ({
visible,
animationStyle,
}) => {
return (
<LottieLoader
visible={visible}
source={require("./loader.json")}
animationStyle={animationStyle}
speed={1}
/>
);
};
const styles = StyleSheet.create({
lottie: { width: 100, height: 100 },
});
You can find free lottie files for your loaders here.
Prop | Description | Default |
---|---|---|
source | The source of animation. Can be referenced as a local asset by a string, or remotely with an object with a uri property, or it can be an actual JS object of an animation, obtained (for example) with something like require('../path/to/animation.json') . | Lottie Object |
visible | Controls the visibility of the loader. | false |
style | The style to be applied to the Lottie. | - |
speed | The speed the animation will progress. | 1 |
loop | A boolean flag indicating whether or not the animation should loop. | true |
Licensed under the MIT.
FAQs
A React Native Loader Component which uses Airbnb's Lottie to render smooth and beautiful loading animations.
The npm package lottie-loader-react-native-tester receives a total of 0 weekly downloads. As such, lottie-loader-react-native-tester popularity was classified as not popular.
We found that lottie-loader-react-native-tester 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.