New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-navigators

Package Overview
Dependencies
Maintainers
4
Versions
179
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-navigators - npm Package Compare versions

Comparing version 0.3.0-6 to 0.3.0-7

lib/SplitRouter.d.ts

3

lib/createNavigators.js
import { createNavigator, StackRouter } from 'react-navigation';
import NativeNavigators from './NativeNavigators';
import SplitRouter from './SplitRouter';
import { NativeNavigatorModes } from './types';

@@ -17,5 +18,5 @@ export function createNativeNavigator(routeConfigMap, stackConfig) {

export function createSplitNavigator(routeConfigMap, stackConfig) {
const router = StackRouter(routeConfigMap, stackConfig);
const router = SplitRouter(routeConfigMap, stackConfig);
return createNavigator(NativeNavigators, router, Object.assign(Object.assign({}, stackConfig), { mode: NativeNavigatorModes.Split }));
}
//# sourceMappingURL=createNavigators.js.map
export * from './createNavigators';
export { default as SplitRouter } from './SplitRouter';
export * from './types';
export * from './createNavigators';
export { default as SplitRouter } from './SplitRouter';
export * from './types';
//# sourceMappingURL=index.js.map

@@ -47,3 +47,2 @@ import React, { PureComponent } from 'react';

static getDerivedStateFromProps(props, state) {
var _a;
const { navigation, screenProps } = props;

@@ -64,3 +63,3 @@ if (navigation.state.routes === state.propRoutes &&

const nextFocusedRoute = routes[routes.length - 1];
if (closingRouteKey === ((_a = previousFocusedRoute) === null || _a === void 0 ? void 0 : _a.key)) {
if (closingRouteKey === (previousFocusedRoute === null || previousFocusedRoute === void 0 ? void 0 : previousFocusedRoute.key)) {
// During a closing transition, just update the routes state.

@@ -67,0 +66,0 @@ routes = [...routes, previousFocusedRoute];

@@ -20,3 +20,3 @@ import React, { memo, createContext } from 'react';

if (mode === NativeNavigatorModes.Stack) {
headerMode = (headerMode !== null && headerMode !== void 0 ? headerMode : NativeNavigatorHeaderModes.Auto);
headerMode = headerMode !== null && headerMode !== void 0 ? headerMode : NativeNavigatorHeaderModes.Auto;
}

@@ -27,3 +27,3 @@ else if (mode === NativeNavigatorModes.Split) {

else {
headerMode = (headerMode !== null && headerMode !== void 0 ? headerMode : NativeNavigatorHeaderModes.None);
headerMode = headerMode !== null && headerMode !== void 0 ? headerMode : NativeNavigatorHeaderModes.None;
}

@@ -30,0 +30,0 @@ return (<NativeStackScene key={key} transition={((_b = (_a = navigation.dangerouslyGetParent()) === null || _a === void 0 ? void 0 : _a.state) === null || _b === void 0 ? void 0 : _b.isTransitioning) ? options.transition || NativeNavigatorTransitions.Default

{
"version": "0.3.0-6",
"version": "0.3.0-7",
"name": "react-native-navigators",

@@ -4,0 +4,0 @@ "repository": {

export * from './createNavigators';
export { default as SplitRouter } from './SplitRouter';
export * from './types';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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