@dark-engine/native-navigation
Advanced tools
Comparing version 0.18.4 to 0.19.0
@@ -78,3 +78,3 @@ 'use strict'; | ||
const Screen = (0, core_2.createComponent)( | ||
({ name, component, initialParams, slot }) => { | ||
({ name, component, initialParams = {}, slot }) => { | ||
const { prefix } = useScreenNavigatorContext(); | ||
@@ -92,5 +92,2 @@ const pathname = (0, utils_1.createPathname)(name, prefix); | ||
displayName: 'StackNavigator.Screen', | ||
defaultProps: { | ||
initialParams: {}, | ||
}, | ||
}, | ||
@@ -97,0 +94,0 @@ ); |
@@ -88,3 +88,3 @@ 'use strict'; | ||
const Screen = (0, core_2.createComponent)( | ||
({ name, component, renderTab, slot }) => { | ||
({ name, component, renderTab = defaultRenderTab, slot }) => { | ||
const { push, pathname: currentPathname } = (0, navigation_container_1.useNavigationContext)(); | ||
@@ -115,7 +115,5 @@ const { descriptorsMap, count, activeTabColor, tabColor } = useTabNavigatorContext(); | ||
displayName: 'TabNavigator.Screen', | ||
defaultProps: { | ||
renderTab: name => (0, core_2.h)('label', null, name), | ||
}, | ||
}, | ||
); | ||
const defaultRenderTab = name => (0, core_2.h)('label', null, name); | ||
const TabNavigatorContext = (0, core_2.createContext)(null); | ||
@@ -122,0 +120,0 @@ function useTabNavigatorContext() { |
@@ -81,3 +81,3 @@ import { Animation, CoreTypes } from '@nativescript/core'; | ||
const Screen = createComponent( | ||
({ name, component, initialParams, slot }) => { | ||
({ name, component, initialParams = {}, slot }) => { | ||
const { prefix } = useScreenNavigatorContext(); | ||
@@ -95,5 +95,2 @@ const pathname = createPathname(name, prefix); | ||
displayName: 'StackNavigator.Screen', | ||
defaultProps: { | ||
initialParams: {}, | ||
}, | ||
}, | ||
@@ -100,0 +97,0 @@ ); |
@@ -89,3 +89,3 @@ import { AccessibilityRole } from '@nativescript/core'; | ||
const Screen = createComponent( | ||
({ name, component, renderTab, slot }) => { | ||
({ name, component, renderTab = defaultRenderTab, slot }) => { | ||
const { push, pathname: currentPathname } = useNavigationContext(); | ||
@@ -116,7 +116,5 @@ const { descriptorsMap, count, activeTabColor, tabColor } = useTabNavigatorContext(); | ||
displayName: 'TabNavigator.Screen', | ||
defaultProps: { | ||
renderTab: name => h('label', null, name), | ||
}, | ||
}, | ||
); | ||
const defaultRenderTab = name => h('label', null, name); | ||
const TabNavigatorContext = createContext(null); | ||
@@ -123,0 +121,0 @@ function useTabNavigatorContext() { |
{ | ||
"name": "@dark-engine/native-navigation", | ||
"version": "0.18.4", | ||
"version": "0.19.0", | ||
"description": "Dark navigation for NativeScript platform", | ||
@@ -5,0 +5,0 @@ "author": "AlexPlex", |
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
122426
1811