navigation-react-native-web
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -42,3 +42,3 @@ import { ReactElement } from 'react'; | ||
*/ | ||
children?: (style: any, scene: ReactElement<any>, key: string, active: boolean, state: State, data: any) => ReactElement<any>; | ||
renderTransition?: (style: any, scene: ReactElement<any>, key: string, active: boolean, state: State, data: any) => ReactElement<any>; | ||
} | ||
@@ -45,0 +45,0 @@ |
@@ -12,10 +12,11 @@ 'use strict'; | ||
const NavigationStack = ({ unmountedStyle, mountedStyle, crumbedStyle, sharedElementTransition, duration, renderScene, children }) => (React__default.createElement(navigationReactMobile.NavigationMotion, { unmountedStyle: unmountedStyle || { translate: 100 }, mountedStyle: mountedStyle || { translate: 0 }, crumbStyle: crumbedStyle || { translate: 0 }, sharedElementMotion: sharedElementTransition, duration: duration, renderScene: renderScene }, typeof children !== 'function' ? | ||
({ translate }, scene, key) => (React__default.createElement(reactNative.View, { key: key, style: { | ||
transform: `translate(${translate}%)`, | ||
position: 'absolute', | ||
backgroundColor: '#fff', | ||
left: 0, right: 0, top: 0, bottom: 0, | ||
overflow: 'hidden', | ||
} }, scene)) : children)); | ||
const NavigationStack = ({ unmountedStyle, mountedStyle, crumbedStyle, sharedElementTransition, duration, renderScene, renderTransition, children }) => (React__default.createElement(navigationReactMobile.NavigationMotion, { unmountedStyle: unmountedStyle || { translate: 100 }, mountedStyle: mountedStyle || { translate: 0 }, crumbStyle: crumbedStyle || { translate: 0 }, sharedElementMotion: sharedElementTransition, duration: duration, renderScene: renderScene, renderMotion: typeof children !== 'function' ? renderTransition || renderMotion : undefined }, children || renderMotion)); | ||
const renderMotion = ({ translate }, scene, key) => (React__default.createElement(reactNative.View, { key: key, style: { | ||
transform: `translate(${translate}%)`, | ||
position: 'absolute', | ||
backgroundColor: '#fff', | ||
left: 0, right: 0, top: 0, bottom: 0, | ||
overflow: 'hidden', | ||
} }, scene)); | ||
NavigationStack.Scene = navigationReactMobile.Scene; | ||
NavigationStack.HistoryManager = navigationReactMobile.MobileHistoryManager; | ||
@@ -201,2 +202,4 @@ NavigationStack.SharedElementTransition = navigationReactMobile.SharedElementMotion; | ||
const Scene = NavigationStack.Scene; | ||
Object.defineProperty(exports, 'useNavigated', { | ||
@@ -238,2 +241,3 @@ enumerable: true, | ||
exports.RightBar = RightBar; | ||
exports.Scene = Scene; | ||
exports.SearchBar = SearchBar; | ||
@@ -240,0 +244,0 @@ exports.SharedElement = SharedEl; |
{ | ||
"name": "navigation-react-native-web", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "React Native Web plugin for the Navigation router", | ||
@@ -5,0 +5,0 @@ "main": "navigation.react.native.web.js", |
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
15984
288