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.
react-native-lottie
Advanced tools
This is a simple wrapper around lottie-react-native
for Android and iOS runtimes, and react-native-web-lottie
on the Web.
This project saves you from having to tinker with webpack, which is great if you're not ready to expo eject
.
Using yarn
on react-native init
:
yarn add react-native-lottie lottie-react-native
Using yarn
on create-react-native-app
:
yarn add react-native-lottie ; expo install lottie-react-native
import React, { useState, useEffect } from "react";
import Animation from "react-native-lottie";
import { Animated, Platform, StyleSheet } from "react-native";
import SomeLottieAnimation from "./assets/some-lottie-animation.json";
const styles = StyleSheet.create({
anim: { width: 200, height: 200, backgroundColor: "green" },
});
export default () => {
const [progress] = useState(() => new Animated.Value(0));
useEffect(
() => {
Animated.timing(
progress,
{ toValue: 1, duration: 1000, useNativeDriver: Platform.OS !== "web" },
).start();
},
[progress],
);
return (
<Animation
style={styles.anim}
source={SomeLottieAnimation}
progress={progress}
/>
);
};
FAQs
Lottie wrapper for React Native. (Android/iOS/Web)
We found that react-native-lottie 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.