@dark-engine/native-navigation
Advanced tools
Comparing version 0.18.2 to 0.18.3
@@ -30,3 +30,3 @@ 'use strict'; | ||
!isReplace && scheduleTransition(pathname, isBack, options); | ||
(0, core_2.detectIsFunction)(onNavigate) && (0, core_2.detectIsFunction)(pathname); | ||
(0, core_2.detectIsFunction)(onNavigate) && onNavigate(pathname); | ||
}); | ||
@@ -33,0 +33,0 @@ scope.history = history; |
@@ -42,3 +42,3 @@ import { CoreTypes } from '@nativescript/core'; | ||
!isReplace && scheduleTransition(pathname, isBack, options); | ||
detectIsFunction(onNavigate) && detectIsFunction(pathname); | ||
detectIsFunction(onNavigate) && onNavigate(pathname); | ||
}); | ||
@@ -45,0 +45,0 @@ scope.history = history; |
@@ -18,5 +18,6 @@ import { type DarkElement } from '@dark-engine/core'; | ||
}; | ||
declare const NavigationContainer: ( | ||
props: NavigationContainerProps & import('@dark-engine/core').RefProps<any>, | ||
) => import('@dark-engine/core/component/component').ComponentFactory<NavigationContainerProps, NavigationContainerRef>; | ||
declare const NavigationContainer: import('@dark-engine/core').ComponentFactory< | ||
NavigationContainerProps & import('@dark-engine/core').RefProps<NavigationContainerRef>, | ||
NavigationContainerRef | ||
>; | ||
export type Transition = { | ||
@@ -23,0 +24,0 @@ from: string; |
@@ -15,3 +15,3 @@ import { | ||
name: string; | ||
component?: Component; | ||
component?: ComponentFactory; | ||
initialParams?: ParamsObject; | ||
@@ -21,16 +21,7 @@ slot?: () => DarkElement; | ||
declare const StackNavigator: { | ||
Root: Component< | ||
StackNavigatorProps & | ||
import('@dark-engine/core').KeyProps & | ||
import('@dark-engine/core').RefProps<unknown> & | ||
import('@dark-engine/core').FlagProps, | ||
any | ||
Root: ComponentFactory< | ||
StackNavigatorProps & import('@dark-engine/core').RefProps<StackNavigatorRef> & Omit<StandardComponentProps, 'ref'>, | ||
StackNavigatorRef | ||
>; | ||
Screen: ( | ||
props?: StackScreenProps & | ||
import('@dark-engine/core').KeyProps & | ||
import('@dark-engine/core').RefProps<unknown> & | ||
import('@dark-engine/core').FlagProps, | ||
ref?: import('@dark-engine/core').Ref<unknown>, | ||
) => ComponentFactory< | ||
Screen: ComponentFactory< | ||
StackScreenProps & | ||
@@ -40,3 +31,3 @@ import('@dark-engine/core').KeyProps & | ||
import('@dark-engine/core').FlagProps, | ||
any | ||
unknown | ||
>; | ||
@@ -50,3 +41,3 @@ }; | ||
declare function useScreenNavigatorContext(): ScreenNavigatorContextValue; | ||
type ScreenComponent = ComponentFactory<StackScreenProps & StandardComponentProps>; | ||
type ScreenComponent = Component<StackScreenProps & StandardComponentProps>; | ||
export { StackNavigator, useScreenNavigatorContext }; |
@@ -1,6 +0,6 @@ | ||
import { type DarkElement, type ComponentFactory, type StandardComponentProps } from '@dark-engine/core'; | ||
import { type DarkElement, type Component, type StandardComponentProps } from '@dark-engine/core'; | ||
import { type StackScreenProps } from '../stack-navigator'; | ||
type TabNavigatorProps = { | ||
bottomNavigationOptions?: Partial<BottomNavigationOptions>; | ||
slot: Array<ComponentFactory<TabScreenProps & StandardComponentProps>>; | ||
slot: Array<Component<TabScreenProps & StandardComponentProps>>; | ||
}; | ||
@@ -22,18 +22,11 @@ type TabScreenProps = { | ||
declare const TabNavigator: { | ||
Root: import('@dark-engine/core').Component< | ||
Root: import('@dark-engine/core').ComponentFactory< | ||
TabNavigatorProps & | ||
import('@dark-engine/core').KeyProps & | ||
import('@dark-engine/core').RefProps<unknown> & | ||
import('@dark-engine/core').FlagProps, | ||
any | ||
import('@dark-engine/core').FlagProps & | ||
Omit<StandardComponentProps, 'ref'>, | ||
unknown | ||
>; | ||
Screen: ( | ||
props?: { | ||
renderTab?: (name: string, isActive: boolean) => DarkElement; | ||
} & StackScreenProps & | ||
import('@dark-engine/core').KeyProps & | ||
import('@dark-engine/core').RefProps<unknown> & | ||
import('@dark-engine/core').FlagProps, | ||
ref?: import('@dark-engine/core').Ref<unknown>, | ||
) => ComponentFactory< | ||
Screen: import('@dark-engine/core').ComponentFactory< | ||
{ | ||
@@ -45,5 +38,5 @@ renderTab?: (name: string, isActive: boolean) => DarkElement; | ||
import('@dark-engine/core').FlagProps, | ||
any | ||
unknown | ||
>; | ||
}; | ||
export { TabNavigator }; |
{ | ||
"name": "@dark-engine/native-navigation", | ||
"version": "0.18.2", | ||
"version": "0.18.3", | ||
"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
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
122574
1821