@dark-engine/native-navigation
Advanced tools
Comparing version 0.19.2 to 0.20.0
@@ -10,3 +10,3 @@ 'use strict'; | ||
const NavigationContainer = (0, core_2.forwardRef)( | ||
(0, core_2.createComponent)( | ||
(0, core_2.component)( | ||
({ slot, defaultPathname = constants_1.SLASH, renderActionBar, onNavigate }, ref) => { | ||
@@ -13,0 +13,0 @@ const frameRef = (0, core_2.useRef)(null); |
@@ -11,3 +11,3 @@ 'use strict'; | ||
const Navigator = (0, core_2.forwardRef)( | ||
(0, core_2.createComponent)( | ||
(0, core_2.component)( | ||
({ slot, onNavigate }, ref) => { | ||
@@ -78,3 +78,3 @@ const { pathname, transition, replace, subscribe } = (0, navigation_container_1.useNavigationContext)(); | ||
); | ||
const Screen = (0, core_2.createComponent)( | ||
const Screen = (0, core_2.component)( | ||
({ name, component, initialParams = {}, slot }) => { | ||
@@ -81,0 +81,0 @@ const { prefix } = useScreenNavigatorContext(); |
@@ -9,3 +9,3 @@ 'use strict'; | ||
const utils_1 = require('../utils'); | ||
const Navigator = (0, core_2.createComponent)( | ||
const Navigator = (0, core_2.component)( | ||
({ bottomNavigationOptions, slot }) => { | ||
@@ -88,3 +88,3 @@ const navRef = (0, core_2.useRef)(null); | ||
); | ||
const Screen = (0, core_2.createComponent)( | ||
const Screen = (0, core_2.component)( | ||
({ name, component, renderTab = defaultRenderTab, slot }) => { | ||
@@ -91,0 +91,0 @@ const { push, pathname: currentPathname } = (0, navigation_container_1.useNavigationContext)(); |
import { CoreTypes } from '@nativescript/core'; | ||
import { | ||
h, | ||
createComponent, | ||
component, | ||
forwardRef, | ||
@@ -22,3 +22,3 @@ useRef, | ||
const NavigationContainer = forwardRef( | ||
createComponent( | ||
component( | ||
({ slot, defaultPathname = SLASH, renderActionBar, onNavigate }, ref) => { | ||
@@ -25,0 +25,0 @@ const frameRef = useRef(null); |
import { Animation, CoreTypes } from '@nativescript/core'; | ||
import { | ||
h, | ||
createComponent, | ||
component, | ||
createContext, | ||
@@ -21,3 +21,3 @@ detectIsFunction, | ||
const Navigator = forwardRef( | ||
createComponent( | ||
component( | ||
({ slot, onNavigate }, ref) => { | ||
@@ -81,3 +81,3 @@ const { pathname, transition, replace, subscribe } = useNavigationContext(); | ||
); | ||
const Screen = createComponent( | ||
const Screen = component( | ||
({ name, component, initialParams = {}, slot }) => { | ||
@@ -84,0 +84,0 @@ const { prefix } = useScreenNavigatorContext(); |
import { AccessibilityRole } from '@nativescript/core'; | ||
import { | ||
h, | ||
createComponent, | ||
component, | ||
createContext, | ||
@@ -17,3 +17,3 @@ useUpdate, | ||
import { createPathname, detectIsMatch } from '../utils'; | ||
const Navigator = createComponent( | ||
const Navigator = component( | ||
({ bottomNavigationOptions, slot }) => { | ||
@@ -89,3 +89,3 @@ const navRef = useRef(null); | ||
); | ||
const Screen = createComponent( | ||
const Screen = component( | ||
({ name, component, renderTab = defaultRenderTab, slot }) => { | ||
@@ -92,0 +92,0 @@ const { push, pathname: currentPathname } = useNavigationContext(); |
{ | ||
"name": "@dark-engine/native-navigation", | ||
"version": "0.19.2", | ||
"version": "0.20.0", | ||
"description": "Dark navigation for NativeScript platform", | ||
@@ -5,0 +5,0 @@ "author": "AlexPlex", |
@@ -43,3 +43,3 @@ # @dark-engine/native-navigation 🌖 | ||
```tsx | ||
const App = createComponent(() => { | ||
const App = component(() => { | ||
return ( | ||
@@ -67,3 +67,3 @@ <NavigationContainer defaultPathname='/Feed'> | ||
```tsx | ||
const App = createComponent(() => { | ||
const App = component(() => { | ||
return ( | ||
@@ -150,3 +150,3 @@ <NavigationContainer defaultPathname='/Feed'> | ||
```tsx | ||
const Home = createComponent(() => { | ||
const Home = component(() => { | ||
return ( | ||
@@ -162,3 +162,3 @@ <StackLayout height='100%'> | ||
const App = createComponent(() => { | ||
const App = component(() => { | ||
return ( | ||
@@ -165,0 +165,0 @@ <NavigationContainer defaultPathname='/Home/Dashboard'> |
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
122324