mobile-navigation-controller
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -215,2 +215,15 @@ "use strict"; | ||
var aniTime = 250; | ||
if (this.props.children.filter(function (x) { | ||
return x.key === goToPage; | ||
}).length > 0) { | ||
if (this.props.children.filter(function (x) { | ||
return x.key === goToPage; | ||
})[0].props.animationTimeInMS) aniTime = this.props.children.filter(function (x) { | ||
return x.key === goToPage; | ||
})[0].props.animationTimeInMS; | ||
} else { | ||
if (this.props.animationTimeInMS) aniTime = this.props.animationTimeInMS; | ||
} | ||
options = options === undefined ? [] : options; | ||
@@ -224,3 +237,3 @@ | ||
_options$timeAnimatio = _options.timeAnimationInMS, | ||
timeAnimationInMS = _options$timeAnimatio === undefined ? 250 : _options$timeAnimatio, | ||
timeAnimationInMS = _options$timeAnimatio === undefined ? aniTime : _options$timeAnimatio, | ||
_options$animationOut = _options.animationOut, | ||
@@ -227,0 +240,0 @@ animationOut = _options$animationOut === undefined ? this.swipeRight ? "slideOutRight" : this.componentTransitionOut[fromPage] ? this.componentTransitionOut[fromPage].animatioPageOut ? this.componentTransitionOut[fromPage].animatioPageOut : null : null : _options$animationOut, |
{ | ||
"name": "mobile-navigation-controller", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "Navigator for JavaScript mobile app, This will help you to manage your pages history in the app and change pages with animation.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -19,2 +19,9 @@ # mobile-navigation-controller | ||
levelPage={1} | ||
transitionIn={ | ||
animatioPageIn:"fadeInRight" | ||
,animatioPageOut:"fadeOutRight" | ||
} | ||
transitionOut={{ | ||
animatioPageOut: "fadeOutRight" | ||
}} | ||
/> | ||
@@ -21,0 +28,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1231926
28878
243