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

react-native-tm

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-tm - npm Package Compare versions

Comparing version 1.0.9 to 1.0.10

LICENSE

2

package.json
{
"name": "react-native-tm",
"version": "1.0.9",
"version": "1.0.10",
"main": "Toast.jsx",

@@ -5,0 +5,0 @@ "description": "Customizable toast component for react-native applications. Supported on ios and android.",

@@ -11,4 +11,7 @@ import React, {forwardRef, useEffect, useRef} from "react";

useEffect(() => {
if (!!children && show)
showToast()
if (!!children && show) {
showToast();
} else {
hide();
}
},[children, show]);

@@ -24,18 +27,22 @@

useNativeDriver: true
}).start(() => hideToast());
}
}).start(() => timeoutHide());
};
const hideToast = () => {
const timeoutHide = () => {
clearTimeout(timer.current);
timer.current = setTimeout(() => {
Animated.timing(animatedValue, {
toValue: -animationValue,
duration: 550,
useNativeDriver: true
}).start(() => {
!!onHide && onHide();
});
hide();
}, showingDuration || 8000);
}
};
const hide = () => {
Animated.timing(animatedValue, {
toValue: -animationValue,
duration: 550,
useNativeDriver: true
}).start(() => {
!!onHide && onHide();
});
};
return(

@@ -42,0 +49,0 @@ <Animated.View

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