You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-navigation-animated-switch

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-navigation-animated-switch - npm Package Compare versions

Comparing version

to
0.1.2

10

index.js

@@ -16,5 +16,9 @@ import * as React from 'react';

componentDidUpdate(prevProps) {
if (this.props.navigation.state.index !== prevProps.navigation.state.index) {
this.containerRef.current &&
this.containerRef.current.animateNextTransition();
const { state: prevState } = prevProps.navigation;
const prevActiveKey = prevState.routes[prevState.index].key;
const { state } = this.props.navigation;
const activeKey = state.routes[state.index].key;
if (activeKey !== prevActiveKey && this.containerRef.current) {
this.containerRef.current.animateNextTransition();
}

@@ -21,0 +25,0 @@ }

{
"name": "react-navigation-animated-switch",
"version": "0.1.1",
"version": "0.1.2",
"description": "",

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