New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-indicator

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-indicator - npm Package Compare versions

Comparing version 0.5.5 to 0.5.6

26

lib/loader/DotsLoader.js

@@ -53,8 +53,3 @@ /**

componentDidMount() {
this.state.opacities.forEach((item, i) => {
const id = setTimeout(() => {
this._animation(i)
}, i * 250);
this.timers.push(id);
});
this._animation();
}

@@ -64,16 +59,19 @@

this.unmounted = true;
this.timers.forEach((id) => {
clearTimeout(id);
});
}
_animation(i) {
Animated.sequence([
Animated.timing(this.state.opacities[i], {toValue: 0.2, duration: 500}),
Animated.timing(this.state.opacities[i], {toValue: 1, duration: 500})
_animation() {
function seq(self, i) {
return Animated.sequence([
Animated.timing(self.state.opacities[i], {toValue: 0.2, duration: 300, delay: i*200}),
Animated.timing(self.state.opacities[i], {toValue: 1, duration: 300})
])
}
Animated.parallel([
seq(this, 0), seq(this, 1), seq(this, 2)
]).start(() => {
if (!this.unmounted)
this._animation(i);
this._animation();
});
}
}
{
"name": "react-native-indicator",
"version": "0.5.5",
"version": "0.5.6",
"description": "React Native Indicator Component",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc