@react-navigation/native
Advanced tools
Comparing version 7.0.0-rc.14 to 7.0.0-rc.15
@@ -27,2 +27,4 @@ "use strict"; | ||
}, []); | ||
// eslint-disable-next-line @eslint-react/no-unstable-context-value | ||
const current = {}; | ||
@@ -47,12 +49,16 @@ if (ref) { | ||
} | ||
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ServerContext.ServerContext.Provider, { | ||
value: { | ||
location | ||
}, | ||
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_core.CurrentRenderContext.Provider, { | ||
value: current, | ||
children: children | ||
return ( | ||
/*#__PURE__*/ | ||
// eslint-disable-next-line @eslint-react/no-unstable-context-value | ||
(0, _jsxRuntime.jsx)(_ServerContext.ServerContext.Provider, { | ||
value: { | ||
location | ||
}, | ||
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_core.CurrentRenderContext.Provider, { | ||
value: current, | ||
children: children | ||
}) | ||
}) | ||
}); | ||
); | ||
}); | ||
//# sourceMappingURL=ServerContainer.js.map |
@@ -7,2 +7,3 @@ "use strict"; | ||
exports.useBackButton = useBackButton; | ||
// eslint-disable-next-line @eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks | ||
function useBackButton(_) { | ||
@@ -9,0 +10,0 @@ // No-op |
@@ -7,5 +7,6 @@ "use strict"; | ||
exports.useDocumentTitle = useDocumentTitle; | ||
// eslint-disable-next-line @eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks | ||
function useDocumentTitle() { | ||
// Noop for React Native | ||
// Noop for native platforms | ||
} | ||
//# sourceMappingURL=useDocumentTitle.native.js.map |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
import { createNavigatorFactory, StackRouter, useNavigationBuilder } from '@react-navigation/core'; | ||
@@ -2,0 +4,0 @@ import { jsx as _jsx } from "react/jsx-runtime"; |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
let location = new URL('', 'http://example.com'); | ||
@@ -2,0 +4,0 @@ let listeners = []; |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
import { nanoid } from 'nanoid/non-secure'; | ||
@@ -2,0 +4,0 @@ export function createMemoryHistory() { |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
import { createComponentForStaticNavigation, createPathConfigForStaticNavigation } from '@react-navigation/core'; | ||
@@ -2,0 +4,0 @@ import * as React from 'react'; |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
import escapeStringRegexp from 'escape-string-regexp'; | ||
@@ -2,0 +4,0 @@ export function extractPathFromURL(prefixes, url) { |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
export { createStaticNavigation } from "./createStaticNavigation.js"; | ||
@@ -2,0 +4,0 @@ export { Link } from "./Link.js"; |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
import { useTheme } from '@react-navigation/core'; | ||
@@ -2,0 +4,0 @@ import * as React from 'react'; |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
import * as React from 'react'; | ||
@@ -2,0 +4,0 @@ const MISSING_CONTEXT_ERROR = "Couldn't find a LinkingContext context."; |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
import * as React from 'react'; | ||
@@ -2,0 +4,0 @@ export const LocaleDirContext = /*#__PURE__*/React.createContext('ltr'); |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
import { BaseNavigationContainer, getActionFromState, getPathFromState, getStateFromPath, ThemeProvider, validatePathConfig } from '@react-navigation/core'; | ||
@@ -2,0 +4,0 @@ import * as React from 'react'; |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
import { CurrentRenderContext } from '@react-navigation/core'; | ||
@@ -19,2 +21,4 @@ import * as React from 'react'; | ||
}, []); | ||
// eslint-disable-next-line @eslint-react/no-unstable-context-value | ||
const current = {}; | ||
@@ -39,12 +43,16 @@ if (ref) { | ||
} | ||
return /*#__PURE__*/_jsx(ServerContext.Provider, { | ||
value: { | ||
location | ||
}, | ||
children: /*#__PURE__*/_jsx(CurrentRenderContext.Provider, { | ||
value: current, | ||
children: children | ||
return ( | ||
/*#__PURE__*/ | ||
// eslint-disable-next-line @eslint-react/no-unstable-context-value | ||
_jsx(ServerContext.Provider, { | ||
value: { | ||
location | ||
}, | ||
children: /*#__PURE__*/_jsx(CurrentRenderContext.Provider, { | ||
value: current, | ||
children: children | ||
}) | ||
}) | ||
}); | ||
); | ||
}); | ||
//# sourceMappingURL=ServerContainer.js.map |
@@ -0,3 +1,5 @@ | ||
"use strict"; | ||
import * as React from 'react'; | ||
export const ServerContext = /*#__PURE__*/React.createContext(undefined); | ||
//# sourceMappingURL=ServerContext.js.map |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
import { fonts } from "./fonts.js"; | ||
@@ -2,0 +4,0 @@ export const DarkTheme = { |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
import { fonts } from "./fonts.js"; | ||
@@ -2,0 +4,0 @@ export const DefaultTheme = { |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
import { Platform } from 'react-native'; | ||
@@ -2,0 +4,0 @@ const WEB_FONT_STACK = 'system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'; |
@@ -0,2 +1,4 @@ | ||
"use strict"; | ||
export {}; | ||
//# sourceMappingURL=types.js.map |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
import * as React from 'react'; | ||
@@ -2,0 +4,0 @@ const MISSING_CONTEXT_ERROR = "Couldn't find an UnhandledLinkingContext context."; |
@@ -0,1 +1,4 @@ | ||
"use strict"; | ||
// eslint-disable-next-line @eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks | ||
export function useBackButton(_) { | ||
@@ -2,0 +5,0 @@ // No-op |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
import * as React from 'react'; | ||
@@ -2,0 +4,0 @@ import { BackHandler } from 'react-native'; |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
import * as React from 'react'; | ||
@@ -2,0 +4,0 @@ /** |
@@ -0,4 +1,7 @@ | ||
"use strict"; | ||
// eslint-disable-next-line @eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks | ||
export function useDocumentTitle() { | ||
// Noop for React Native | ||
// Noop for native platforms | ||
} | ||
//# sourceMappingURL=useDocumentTitle.native.js.map |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
import { CommonActions, getActionFromState, getPathFromState, getStateFromPath, NavigationHelpersContext } from '@react-navigation/core'; | ||
@@ -2,0 +4,0 @@ import * as React from 'react'; |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
import { findFocusedRoute, getActionFromState as getActionFromStateDefault, getPathFromState as getPathFromStateDefault, getStateFromPath as getStateFromPathDefault, useNavigationIndependentTree } from '@react-navigation/core'; | ||
@@ -2,0 +4,0 @@ import isEqual from 'fast-deep-equal'; |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
import { getActionFromState as getActionFromStateDefault, getStateFromPath as getStateFromPathDefault, useNavigationIndependentTree } from '@react-navigation/core'; | ||
@@ -2,0 +4,0 @@ import * as React from 'react'; |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
import { getPathFromState, NavigationContainerRefContext, NavigationHelpersContext } from '@react-navigation/core'; | ||
@@ -2,0 +4,0 @@ import * as React from 'react'; |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
import { NavigationContainerRefContext } from '@react-navigation/core'; | ||
@@ -2,0 +4,0 @@ import * as React from 'react'; |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
import * as React from 'react'; | ||
@@ -2,0 +4,0 @@ import { LocaleDirContext } from "./LocaleDirContext.js"; |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
import { NavigationContext, useRoute } from '@react-navigation/core'; | ||
@@ -2,0 +4,0 @@ import * as React from 'react'; |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
import * as React from 'react'; | ||
@@ -2,0 +4,0 @@ export function useThenable(create) { |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
import { getStateFromPath, NavigationContext } from '@react-navigation/core'; | ||
@@ -2,0 +4,0 @@ import React from 'react'; |
{ | ||
"name": "@react-navigation/native", | ||
"description": "React Native integration for React Navigation", | ||
"version": "7.0.0-rc.14", | ||
"version": "7.0.0-rc.15", | ||
"keywords": [ | ||
@@ -24,8 +24,13 @@ "react-native", | ||
"module": "./lib/module/index.js", | ||
"types": "./lib/typescript/src/index.d.ts", | ||
"types": "./lib/typescript/commonjs/src/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./lib/typescript/src/index.d.ts", | ||
"import": "./lib/module/index.js", | ||
"require": "./lib/commonjs/index.js" | ||
"import": { | ||
"types": "./lib/typescript/module/src/index.d.ts", | ||
"default": "./lib/module/index.js" | ||
}, | ||
"require": { | ||
"types": "./lib/typescript/commonjs/src/index.d.ts", | ||
"default": "./lib/commonjs/index.js" | ||
} | ||
} | ||
@@ -47,3 +52,3 @@ }, | ||
"dependencies": { | ||
"@react-navigation/core": "^7.0.0-rc.10", | ||
"@react-navigation/core": "^7.0.0-rc.11", | ||
"escape-string-regexp": "^4.0.0", | ||
@@ -55,2 +60,3 @@ "fast-deep-equal": "^3.1.3", | ||
"devDependencies": { | ||
"@jest/globals": "^29.7.0", | ||
"@testing-library/react-native": "^12.4.3", | ||
@@ -63,3 +69,3 @@ "@types/react": "~18.2.79", | ||
"react-native": "0.74.2", | ||
"react-native-builder-bob": "^0.26.0", | ||
"react-native-builder-bob": "^0.29.0", | ||
"typescript": "^5.5.2" | ||
@@ -90,3 +96,4 @@ }, | ||
{ | ||
"project": "tsconfig.build.json" | ||
"project": "tsconfig.build.json", | ||
"esm": true | ||
} | ||
@@ -96,3 +103,3 @@ ] | ||
}, | ||
"gitHead": "464d69b38e9042ee8db8e245a9c04f75743c5893" | ||
"gitHead": "edca385823db5da671d3fcd221ac10ea930d10b8" | ||
} |
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
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
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
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
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
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
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
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
595036
280
6866
10