pytech-ui 1.0.33 → 1.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { HostProps as ExpoHostProps } from '@expo/ui/jetpack-compose';
|
|
2
2
|
import { NavigationWrapperProps } from './NavigationWrapper';
|
|
3
|
-
export type HostProps = ExpoHostProps & Partial<NavigationWrapperProps
|
|
4
|
-
export declare const Host: ({ style,
|
|
3
|
+
export type HostProps = ExpoHostProps & Partial<Omit<NavigationWrapperProps, 'screenA' | 'startDestination'>>;
|
|
4
|
+
export declare const Host: ({ style, screenB, ...props }: HostProps) => import("react").JSX.Element;
|
|
@@ -5,11 +5,11 @@ const expo_1 = require("expo");
|
|
|
5
5
|
const jetpack_compose_1 = require("@expo/ui/jetpack-compose");
|
|
6
6
|
const NavigationWrapper_1 = require("./NavigationWrapper");
|
|
7
7
|
const ExtendedTheme = (0, expo_1.requireNativeView)('PytechUi', 'ExtendedTheme');
|
|
8
|
-
const Host = ({ style,
|
|
9
|
-
const hasNavigation =
|
|
8
|
+
const Host = ({ style, screenB, ...props }) => {
|
|
9
|
+
const hasNavigation = screenB != null;
|
|
10
10
|
return (<jetpack_compose_1.Host style={{ flex: 1, ...style }} {...props}>
|
|
11
11
|
<ExtendedTheme>
|
|
12
|
-
{hasNavigation ? (<NavigationWrapper_1.NavigationWrapper screenA={
|
|
12
|
+
{hasNavigation ? (<NavigationWrapper_1.NavigationWrapper screenA={props.children} screenB={screenB} startDestination='screen_A'/>) : (props.children)}
|
|
13
13
|
</ExtendedTheme>
|
|
14
14
|
</jetpack_compose_1.Host>);
|
|
15
15
|
};
|