@sigmela/router 0.0.12 → 0.0.13

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.
@@ -50,7 +50,7 @@ export const Navigation = /*#__PURE__*/memo(({
50
50
  stackAnimation: rootTransition,
51
51
  children: /*#__PURE__*/_jsx(RenderTabBar, {
52
52
  tabBar: router.tabBar,
53
- appearance: appearance?.tabBar
53
+ appearance: appearance
54
54
  })
55
55
  }), rootItems.map(item => /*#__PURE__*/_jsx(ScreenStackItem, {
56
56
  stackId: rootId,
@@ -7,7 +7,8 @@ import { useRouter } from "./RouterContext.js";
7
7
  import { StyleSheet } from 'react-native';
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
9
  export const StackRenderer = /*#__PURE__*/memo(({
10
- stack
10
+ stack,
11
+ screenStyle
11
12
  }) => {
12
13
  const router = useRouter();
13
14
  const stackId = stack.getId();
@@ -18,7 +19,8 @@ export const StackRenderer = /*#__PURE__*/memo(({
18
19
  style: styles.flex,
19
20
  children: historyForThisStack.map(item => /*#__PURE__*/_jsx(ScreenStackItem, {
20
21
  item: item,
21
- stackId: stackId
22
+ stackId: stackId,
23
+ screenStyle: screenStyle
22
24
  }, item.key))
23
25
  });
24
26
  });
@@ -45,7 +45,7 @@ export const RenderTabBar = /*#__PURE__*/memo(({
45
45
  tabBarItemStyle,
46
46
  tintColor,
47
47
  backgroundColor
48
- } = appearance ?? {};
48
+ } = appearance?.tabBar ?? {};
49
49
  useEffect(() => {
50
50
  router.ensureTabSeed(index);
51
51
  }, [index, router]);
@@ -113,7 +113,8 @@ export const RenderTabBar = /*#__PURE__*/memo(({
113
113
  isFocused: isFocused,
114
114
  ...mappedTabProps,
115
115
  children: stack ? /*#__PURE__*/_jsx(StackRenderer, {
116
- stack: stack
116
+ stack: stack,
117
+ screenStyle: appearance?.screenStyle
117
118
  }) : Screen ? /*#__PURE__*/_jsx(Screen, {}) : null
118
119
  }, tab.tabKey);
119
120
  })
@@ -1,6 +1,8 @@
1
1
  import { NavigationStack } from './NavigationStack';
2
+ import { type StyleProp, type ViewStyle } from 'react-native';
2
3
  export interface StackRendererProps {
3
4
  stack: NavigationStack;
5
+ screenStyle?: StyleProp<ViewStyle>;
4
6
  }
5
7
  export declare const StackRenderer: import("react").NamedExoticComponent<StackRendererProps>;
6
8
  //# sourceMappingURL=StackRenderer.d.ts.map
@@ -2,7 +2,7 @@ import type { NavigationAppearance } from '../types';
2
2
  import type { TabBar } from './TabBar';
3
3
  export interface RenderTabBarProps {
4
4
  tabBar: TabBar;
5
- appearance?: NavigationAppearance['tabBar'];
5
+ appearance?: NavigationAppearance;
6
6
  }
7
7
  export declare const RenderTabBar: import("react").NamedExoticComponent<RenderTabBarProps>;
8
8
  //# sourceMappingURL=RenderTabBar.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sigmela/router",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "React Native Router",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",