Socket
Socket
Sign inDemoInstall

react-navigation-transitions

Package Overview
Dependencies
515
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.10 to 1.0.11

2

package.json
{
"name": "react-navigation-transitions",
"version": "1.0.10",
"version": "1.0.11",
"description": "Custom transitions for react-navigation",

@@ -5,0 +5,0 @@ "author": "Phil Mok",

@@ -132,2 +132,23 @@ import { Animated, Easing, Platform } from 'react-native';

export function fadeOut(duration = 300) {
return {
transitionSpec: {
duration,
easing: Easing.out(Easing.poly(4)),
timing: Animated.timing,
useNativeDriver: true,
},
screenInterpolator: ({ position, scene }) => {
const { index } = scene;
const opacity = position.interpolate({
inputRange: [index - 1, index, index + 1],
outputRange: [0, 1, 0]
});
return { opacity };
},
};
}
export function zoomIn(duration = 300) {

@@ -134,0 +155,0 @@ return {

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc