Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

navigation-react-native-web

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

navigation-react-native-web - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

2

navigation.react.native.web.d.ts

@@ -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",

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