expo-router 56.2.5 → 56.2.7
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.
- package/android/build.gradle +2 -2
- package/build/layouts/Tabs.d.ts +1 -0
- package/build/layouts/Tabs.d.ts.map +1 -1
- package/build/layouts/Tabs.js +15 -0
- package/build/layouts/Tabs.js.map +1 -1
- package/build/layouts/TabsClient.d.ts +12 -12
- package/build/layouts/TopTabs.d.ts +1 -0
- package/build/layouts/TopTabs.d.ts.map +1 -1
- package/build/layouts/TopTabs.js +15 -0
- package/build/layouts/TopTabs.js.map +1 -1
- package/build/layouts/TopTabsClient.d.ts +4 -4
- package/build/layouts/stack-utils/toolbar/StackToolbarButton/native.ios.d.ts.map +1 -1
- package/build/layouts/stack-utils/toolbar/StackToolbarButton/native.ios.js +3 -0
- package/build/layouts/stack-utils/toolbar/StackToolbarButton/native.ios.js.map +1 -1
- package/build/layouts/stack-utils/toolbar/StackToolbarButton/types.d.ts +3 -3
- package/build/layouts/stack-utils/toolbar/StackToolbarButton/types.d.ts.map +1 -1
- package/build/layouts/stack-utils/toolbar/StackToolbarButton/types.js.map +1 -1
- package/build/layouts/stack-utils/toolbar/StackToolbarMenu/native.ios.d.ts.map +1 -1
- package/build/layouts/stack-utils/toolbar/StackToolbarMenu/native.ios.js +4 -1
- package/build/layouts/stack-utils/toolbar/StackToolbarMenu/native.ios.js.map +1 -1
- package/build/layouts/stack-utils/toolbar/StackToolbarMenu/types.d.ts +4 -4
- package/build/layouts/stack-utils/toolbar/StackToolbarMenu/types.d.ts.map +1 -1
- package/build/layouts/stack-utils/toolbar/StackToolbarMenu/types.js.map +1 -1
- package/build/link/elements.d.ts +3 -3
- package/build/link/elements.d.ts.map +1 -1
- package/build/link/elements.js.map +1 -1
- package/build/link/preview/native.d.ts +2 -2
- package/build/link/preview/native.d.ts.map +1 -1
- package/build/link/preview/native.js.map +1 -1
- package/build/native-tabs/NativeBottomTabsNavigator.d.ts +1 -1
- package/build/native-tabs/NativeBottomTabsNavigator.d.ts.map +1 -1
- package/build/native-tabs/NativeBottomTabsNavigator.js +5 -1
- package/build/native-tabs/NativeBottomTabsNavigator.js.map +1 -1
- package/build/native-tabs/NativeTabTrigger.d.ts +1 -1
- package/build/native-tabs/NativeTabTrigger.d.ts.map +1 -1
- package/build/native-tabs/NativeTabTrigger.js +9 -1
- package/build/native-tabs/NativeTabTrigger.js.map +1 -1
- package/build/native-tabs/NativeTabsView.android.d.ts.map +1 -1
- package/build/native-tabs/NativeTabsView.android.js +11 -15
- package/build/native-tabs/NativeTabsView.android.js.map +1 -1
- package/build/native-tabs/NativeTabsView.ios.js +1 -1
- package/build/native-tabs/NativeTabsView.ios.js.map +1 -1
- package/build/native-tabs/appearance.android.d.ts +2 -2
- package/build/native-tabs/appearance.android.d.ts.map +1 -1
- package/build/native-tabs/appearance.android.js +5 -4
- package/build/native-tabs/appearance.android.js.map +1 -1
- package/build/native-tabs/appearance.d.ts +1 -2
- package/build/native-tabs/appearance.d.ts.map +1 -1
- package/build/native-tabs/appearance.js +1 -1
- package/build/native-tabs/appearance.js.map +1 -1
- package/build/native-tabs/types.d.ts +152 -1
- package/build/native-tabs/types.d.ts.map +1 -1
- package/build/native-tabs/types.js.map +1 -1
- package/build/toolbar/native.types.d.ts +2 -2
- package/build/toolbar/native.types.d.ts.map +1 -1
- package/build/toolbar/native.types.js.map +1 -1
- package/expo-module.config.json +1 -1
- package/local-maven-repo/expo/modules/router/expo.modules.router/{56.2.5/expo.modules.router-56.2.5.module → 56.2.7/expo.modules.router-56.2.7.module} +7 -7
- package/local-maven-repo/expo/modules/router/expo.modules.router/56.2.7/expo.modules.router-56.2.7.module.md5 +1 -0
- package/local-maven-repo/expo/modules/router/expo.modules.router/56.2.7/expo.modules.router-56.2.7.module.sha1 +1 -0
- package/local-maven-repo/expo/modules/router/expo.modules.router/56.2.7/expo.modules.router-56.2.7.module.sha256 +1 -0
- package/local-maven-repo/expo/modules/router/expo.modules.router/56.2.7/expo.modules.router-56.2.7.module.sha512 +1 -0
- package/local-maven-repo/expo/modules/router/expo.modules.router/{56.2.5/expo.modules.router-56.2.5.pom → 56.2.7/expo.modules.router-56.2.7.pom} +1 -1
- package/local-maven-repo/expo/modules/router/expo.modules.router/56.2.7/expo.modules.router-56.2.7.pom.md5 +1 -0
- package/local-maven-repo/expo/modules/router/expo.modules.router/56.2.7/expo.modules.router-56.2.7.pom.sha1 +1 -0
- package/local-maven-repo/expo/modules/router/expo.modules.router/56.2.7/expo.modules.router-56.2.7.pom.sha256 +1 -0
- package/local-maven-repo/expo/modules/router/expo.modules.router/56.2.7/expo.modules.router-56.2.7.pom.sha512 +1 -0
- package/local-maven-repo/expo/modules/router/expo.modules.router/maven-metadata.xml +4 -4
- package/local-maven-repo/expo/modules/router/expo.modules.router/maven-metadata.xml.md5 +1 -1
- package/local-maven-repo/expo/modules/router/expo.modules.router/maven-metadata.xml.sha1 +1 -1
- package/local-maven-repo/expo/modules/router/expo.modules.router/maven-metadata.xml.sha256 +1 -1
- package/local-maven-repo/expo/modules/router/expo.modules.router/maven-metadata.xml.sha512 +1 -1
- package/package.json +11 -11
- package/plugin/tsconfig.tsbuildinfo +1 -0
- package/build/native-tabs/appearance.types.d.ts +0 -27
- package/build/native-tabs/appearance.types.d.ts.map +0 -1
- package/build/native-tabs/appearance.types.js +0 -3
- package/build/native-tabs/appearance.types.js.map +0 -1
- package/local-maven-repo/expo/modules/router/expo.modules.router/56.2.5/expo.modules.router-56.2.5.module.md5 +0 -1
- package/local-maven-repo/expo/modules/router/expo.modules.router/56.2.5/expo.modules.router-56.2.5.module.sha1 +0 -1
- package/local-maven-repo/expo/modules/router/expo.modules.router/56.2.5/expo.modules.router-56.2.5.module.sha256 +0 -1
- package/local-maven-repo/expo/modules/router/expo.modules.router/56.2.5/expo.modules.router-56.2.5.module.sha512 +0 -1
- package/local-maven-repo/expo/modules/router/expo.modules.router/56.2.5/expo.modules.router-56.2.5.pom.md5 +0 -1
- package/local-maven-repo/expo/modules/router/expo.modules.router/56.2.5/expo.modules.router-56.2.5.pom.sha1 +0 -1
- package/local-maven-repo/expo/modules/router/expo.modules.router/56.2.5/expo.modules.router-56.2.5.pom.sha256 +0 -1
- package/local-maven-repo/expo/modules/router/expo.modules.router/56.2.5/expo.modules.router-56.2.5.pom.sha512 +0 -1
- /package/local-maven-repo/expo/modules/router/expo.modules.router/{56.2.5/expo.modules.router-56.2.5-sources.jar → 56.2.7/expo.modules.router-56.2.7-sources.jar} +0 -0
- /package/local-maven-repo/expo/modules/router/expo.modules.router/{56.2.5/expo.modules.router-56.2.5-sources.jar.md5 → 56.2.7/expo.modules.router-56.2.7-sources.jar.md5} +0 -0
- /package/local-maven-repo/expo/modules/router/expo.modules.router/{56.2.5/expo.modules.router-56.2.5-sources.jar.sha1 → 56.2.7/expo.modules.router-56.2.7-sources.jar.sha1} +0 -0
- /package/local-maven-repo/expo/modules/router/expo.modules.router/{56.2.5/expo.modules.router-56.2.5-sources.jar.sha256 → 56.2.7/expo.modules.router-56.2.7-sources.jar.sha256} +0 -0
- /package/local-maven-repo/expo/modules/router/expo.modules.router/{56.2.5/expo.modules.router-56.2.5-sources.jar.sha512 → 56.2.7/expo.modules.router-56.2.7-sources.jar.sha512} +0 -0
- /package/local-maven-repo/expo/modules/router/expo.modules.router/{56.2.5/expo.modules.router-56.2.5.aar → 56.2.7/expo.modules.router-56.2.7.aar} +0 -0
- /package/local-maven-repo/expo/modules/router/expo.modules.router/{56.2.5/expo.modules.router-56.2.5.aar.md5 → 56.2.7/expo.modules.router-56.2.7.aar.md5} +0 -0
- /package/local-maven-repo/expo/modules/router/expo.modules.router/{56.2.5/expo.modules.router-56.2.5.aar.sha1 → 56.2.7/expo.modules.router-56.2.7.aar.sha1} +0 -0
- /package/local-maven-repo/expo/modules/router/expo.modules.router/{56.2.5/expo.modules.router-56.2.5.aar.sha256 → 56.2.7/expo.modules.router-56.2.7.aar.sha256} +0 -0
- /package/local-maven-repo/expo/modules/router/expo.modules.router/{56.2.5/expo.modules.router-56.2.5.aar.sha512 → 56.2.7/expo.modules.router-56.2.7.aar.sha512} +0 -0
package/android/build.gradle
CHANGED
|
@@ -4,13 +4,13 @@ plugins {
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
group = 'expo.modules.router'
|
|
7
|
-
version = '56.2.
|
|
7
|
+
version = '56.2.7'
|
|
8
8
|
|
|
9
9
|
android {
|
|
10
10
|
namespace "expo.modules.router"
|
|
11
11
|
defaultConfig {
|
|
12
12
|
versionCode 1
|
|
13
|
-
versionName "56.2.
|
|
13
|
+
versionName "56.2.7"
|
|
14
14
|
}
|
|
15
15
|
lintOptions {
|
|
16
16
|
abortOnError false
|
package/build/layouts/Tabs.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../src/layouts/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../src/layouts/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,cAAc,CAAC;AAGhC,cAAc,iCAAiC,CAAC;AAIhD,OAAO,EAAE,IAAI,EAAE,CAAC;AAEhB,eAAe,IAAI,CAAC"}
|
package/build/layouts/Tabs.js
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
18
|
};
|
|
@@ -7,6 +21,7 @@ exports.Tabs = void 0;
|
|
|
7
21
|
const TabsClient_1 = __importDefault(require("./TabsClient"));
|
|
8
22
|
exports.Tabs = TabsClient_1.default;
|
|
9
23
|
const Screen_1 = require("../views/Screen");
|
|
24
|
+
__exportStar(require("../react-navigation/bottom-tabs"), exports);
|
|
10
25
|
TabsClient_1.default.Screen = Screen_1.Screen;
|
|
11
26
|
exports.default = TabsClient_1.default;
|
|
12
27
|
//# sourceMappingURL=Tabs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../src/layouts/Tabs.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../src/layouts/Tabs.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAgC;AAOvB,eAPF,oBAAI,CAOE;AANb,4CAAyC;AAEzC,kEAAgD;AAEhD,oBAAI,CAAC,MAAM,GAAG,eAAM,CAAC;AAIrB,kBAAe,oBAAI,CAAC","sourcesContent":["import Tabs from './TabsClient';\nimport { Screen } from '../views/Screen';\n\nexport * from '../react-navigation/bottom-tabs';\n\nTabs.Screen = Screen;\n\nexport { Tabs };\n\nexport default Tabs;\n"]}
|
|
@@ -3,7 +3,7 @@ import type { BottomTabNavigationEventMap, BottomTabNavigationOptions } from '..
|
|
|
3
3
|
import type { ParamListBase, TabNavigationState } from '../react-navigation/native';
|
|
4
4
|
import type { Href } from '../types';
|
|
5
5
|
import { Protected } from '../views/Protected';
|
|
6
|
-
declare const BottomTabNavigator: import("react").ComponentType<Omit<import("
|
|
6
|
+
declare const BottomTabNavigator: import("react").ComponentType<Omit<import("./Tabs").BottomTabNavigatorProps, "children" | "initialRouteName" | "layout" | "screenListeners" | "screenOptions" | "screenLayout" | "UNSTABLE_router" | "UNSTABLE_routeNamesChangeBehavior" | "id"> & import("../react-navigation").DefaultRouterOptions<string> & ({
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
layout?: ((props: {
|
|
9
9
|
state: TabNavigationState<ParamListBase>;
|
|
@@ -22,7 +22,7 @@ declare const BottomTabNavigator: import("react").ComponentType<Omit<import("../
|
|
|
22
22
|
beforeRemove: import("../react-navigation").EventListenerCallback<BottomTabNavigationEventMap & import("../react-navigation").EventMapCore<TabNavigationState<ParamListBase>>, "beforeRemove", true>;
|
|
23
23
|
}> | ((props: {
|
|
24
24
|
route: import("../react-navigation").RouteProp<ParamListBase, string>;
|
|
25
|
-
navigation: import("
|
|
25
|
+
navigation: import("./Tabs").BottomTabNavigationProp<ParamListBase, string, string | undefined>;
|
|
26
26
|
}) => Partial<{
|
|
27
27
|
tabPress: import("../react-navigation").EventListenerCallback<BottomTabNavigationEventMap & import("../react-navigation").EventMapCore<TabNavigationState<ParamListBase>>, "tabPress", true>;
|
|
28
28
|
tabLongPress: import("../react-navigation").EventListenerCallback<BottomTabNavigationEventMap & import("../react-navigation").EventMapCore<TabNavigationState<ParamListBase>>, "tabLongPress", unknown>;
|
|
@@ -35,10 +35,10 @@ declare const BottomTabNavigator: import("react").ComponentType<Omit<import("../
|
|
|
35
35
|
}>) | undefined;
|
|
36
36
|
screenOptions?: BottomTabNavigationOptions | ((props: {
|
|
37
37
|
route: import("../react-navigation").RouteProp<ParamListBase, string>;
|
|
38
|
-
navigation: import("
|
|
38
|
+
navigation: import("./Tabs").BottomTabNavigationProp<ParamListBase, string, string | undefined>;
|
|
39
39
|
theme: ReactNavigation.Theme;
|
|
40
40
|
}) => BottomTabNavigationOptions) | undefined;
|
|
41
|
-
screenLayout?: ((props: import("../react-navigation").ScreenLayoutArgs<ParamListBase, string, BottomTabNavigationOptions, import("
|
|
41
|
+
screenLayout?: ((props: import("../react-navigation").ScreenLayoutArgs<ParamListBase, string, BottomTabNavigationOptions, import("./Tabs").BottomTabNavigationProp<ParamListBase, string, string | undefined>>) => React.ReactElement) | undefined;
|
|
42
42
|
UNSTABLE_router?: (<Action extends Readonly<{
|
|
43
43
|
type: string;
|
|
44
44
|
payload?: object;
|
|
@@ -55,7 +55,7 @@ export type BottomTabNavigator = typeof BottomTabNavigator;
|
|
|
55
55
|
type TabsProps = BottomTabNavigationOptions & {
|
|
56
56
|
href?: Href | null;
|
|
57
57
|
};
|
|
58
|
-
declare const ExpoTabs: import("react").ForwardRefExoticComponent<Omit<Omit<import("
|
|
58
|
+
declare const ExpoTabs: import("react").ForwardRefExoticComponent<Omit<Omit<import("./Tabs").BottomTabNavigatorProps, "children" | "initialRouteName" | "layout" | "screenListeners" | "screenOptions" | "screenLayout" | "UNSTABLE_router" | "UNSTABLE_routeNamesChangeBehavior" | "id"> & import("../react-navigation").DefaultRouterOptions<string> & ({
|
|
59
59
|
children: React.ReactNode;
|
|
60
60
|
layout?: ((props: {
|
|
61
61
|
state: TabNavigationState<ParamListBase>;
|
|
@@ -74,7 +74,7 @@ declare const ExpoTabs: import("react").ForwardRefExoticComponent<Omit<Omit<impo
|
|
|
74
74
|
beforeRemove: import("../react-navigation").EventListenerCallback<BottomTabNavigationEventMap & import("../react-navigation").EventMapCore<TabNavigationState<ParamListBase>>, "beforeRemove", true>;
|
|
75
75
|
}> | ((props: {
|
|
76
76
|
route: import("../react-navigation").RouteProp<ParamListBase, string>;
|
|
77
|
-
navigation: import("
|
|
77
|
+
navigation: import("./Tabs").BottomTabNavigationProp<ParamListBase, string, string | undefined>;
|
|
78
78
|
}) => Partial<{
|
|
79
79
|
tabPress: import("../react-navigation").EventListenerCallback<BottomTabNavigationEventMap & import("../react-navigation").EventMapCore<TabNavigationState<ParamListBase>>, "tabPress", true>;
|
|
80
80
|
tabLongPress: import("../react-navigation").EventListenerCallback<BottomTabNavigationEventMap & import("../react-navigation").EventMapCore<TabNavigationState<ParamListBase>>, "tabLongPress", unknown>;
|
|
@@ -87,10 +87,10 @@ declare const ExpoTabs: import("react").ForwardRefExoticComponent<Omit<Omit<impo
|
|
|
87
87
|
}>) | undefined;
|
|
88
88
|
screenOptions?: BottomTabNavigationOptions | ((props: {
|
|
89
89
|
route: import("../react-navigation").RouteProp<ParamListBase, string>;
|
|
90
|
-
navigation: import("
|
|
90
|
+
navigation: import("./Tabs").BottomTabNavigationProp<ParamListBase, string, string | undefined>;
|
|
91
91
|
theme: ReactNavigation.Theme;
|
|
92
92
|
}) => BottomTabNavigationOptions) | undefined;
|
|
93
|
-
screenLayout?: ((props: import("../react-navigation").ScreenLayoutArgs<ParamListBase, string, BottomTabNavigationOptions, import("
|
|
93
|
+
screenLayout?: ((props: import("../react-navigation").ScreenLayoutArgs<ParamListBase, string, BottomTabNavigationOptions, import("./Tabs").BottomTabNavigationProp<ParamListBase, string, string | undefined>>) => React.ReactElement) | undefined;
|
|
94
94
|
UNSTABLE_router?: (<Action extends Readonly<{
|
|
95
95
|
type: string;
|
|
96
96
|
payload?: object;
|
|
@@ -102,7 +102,7 @@ declare const ExpoTabs: import("react").ForwardRefExoticComponent<Omit<Omit<impo
|
|
|
102
102
|
id?: undefined;
|
|
103
103
|
} | {
|
|
104
104
|
id: string;
|
|
105
|
-
})), "children"> & Partial<Pick<Omit<import("
|
|
105
|
+
})), "children"> & Partial<Pick<Omit<import("./Tabs").BottomTabNavigatorProps, "children" | "initialRouteName" | "layout" | "screenListeners" | "screenOptions" | "screenLayout" | "UNSTABLE_router" | "UNSTABLE_routeNamesChangeBehavior" | "id"> & import("../react-navigation").DefaultRouterOptions<string> & ({
|
|
106
106
|
children: React.ReactNode;
|
|
107
107
|
layout?: ((props: {
|
|
108
108
|
state: TabNavigationState<ParamListBase>;
|
|
@@ -121,7 +121,7 @@ declare const ExpoTabs: import("react").ForwardRefExoticComponent<Omit<Omit<impo
|
|
|
121
121
|
beforeRemove: import("../react-navigation").EventListenerCallback<BottomTabNavigationEventMap & import("../react-navigation").EventMapCore<TabNavigationState<ParamListBase>>, "beforeRemove", true>;
|
|
122
122
|
}> | ((props: {
|
|
123
123
|
route: import("../react-navigation").RouteProp<ParamListBase, string>;
|
|
124
|
-
navigation: import("
|
|
124
|
+
navigation: import("./Tabs").BottomTabNavigationProp<ParamListBase, string, string | undefined>;
|
|
125
125
|
}) => Partial<{
|
|
126
126
|
tabPress: import("../react-navigation").EventListenerCallback<BottomTabNavigationEventMap & import("../react-navigation").EventMapCore<TabNavigationState<ParamListBase>>, "tabPress", true>;
|
|
127
127
|
tabLongPress: import("../react-navigation").EventListenerCallback<BottomTabNavigationEventMap & import("../react-navigation").EventMapCore<TabNavigationState<ParamListBase>>, "tabLongPress", unknown>;
|
|
@@ -134,10 +134,10 @@ declare const ExpoTabs: import("react").ForwardRefExoticComponent<Omit<Omit<impo
|
|
|
134
134
|
}>) | undefined;
|
|
135
135
|
screenOptions?: BottomTabNavigationOptions | ((props: {
|
|
136
136
|
route: import("../react-navigation").RouteProp<ParamListBase, string>;
|
|
137
|
-
navigation: import("
|
|
137
|
+
navigation: import("./Tabs").BottomTabNavigationProp<ParamListBase, string, string | undefined>;
|
|
138
138
|
theme: ReactNavigation.Theme;
|
|
139
139
|
}) => BottomTabNavigationOptions) | undefined;
|
|
140
|
-
screenLayout?: ((props: import("../react-navigation").ScreenLayoutArgs<ParamListBase, string, BottomTabNavigationOptions, import("
|
|
140
|
+
screenLayout?: ((props: import("../react-navigation").ScreenLayoutArgs<ParamListBase, string, BottomTabNavigationOptions, import("./Tabs").BottomTabNavigationProp<ParamListBase, string, string | undefined>>) => React.ReactElement) | undefined;
|
|
141
141
|
UNSTABLE_router?: (<Action extends Readonly<{
|
|
142
142
|
type: string;
|
|
143
143
|
payload?: object;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopTabs.d.ts","sourceRoot":"","sources":["../../src/layouts/TopTabs.tsx"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,iBAAiB,CAAC;AAKtC,OAAO,EAAE,OAAO,EAAE,CAAC;AAEnB,eAAe,OAAO,CAAC"}
|
|
1
|
+
{"version":3,"file":"TopTabs.d.ts","sourceRoot":"","sources":["../../src/layouts/TopTabs.tsx"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,iBAAiB,CAAC;AAKtC,OAAO,EAAE,OAAO,EAAE,CAAC;AAEnB,cAAc,uCAAuC,CAAC;AAEtD,eAAe,OAAO,CAAC"}
|
package/build/layouts/TopTabs.js
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
18
|
};
|
|
@@ -8,5 +22,6 @@ const TopTabsClient_1 = __importDefault(require("./TopTabsClient"));
|
|
|
8
22
|
exports.TopTabs = TopTabsClient_1.default;
|
|
9
23
|
const Screen_1 = require("../views/Screen");
|
|
10
24
|
TopTabsClient_1.default.Screen = Screen_1.Screen;
|
|
25
|
+
__exportStar(require("../react-navigation/material-top-tabs"), exports);
|
|
11
26
|
exports.default = TopTabsClient_1.default;
|
|
12
27
|
//# sourceMappingURL=TopTabs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopTabs.js","sourceRoot":"","sources":["../../src/layouts/TopTabs.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TopTabs.js","sourceRoot":"","sources":["../../src/layouts/TopTabs.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,oEAAsC;AAK7B,kBALF,uBAAO,CAKE;AAJhB,4CAAyC;AAEzC,uBAAO,CAAC,MAAM,GAAG,eAAM,CAAC;AAIxB,wEAAsD;AAEtD,kBAAe,uBAAO,CAAC","sourcesContent":["import TopTabs from './TopTabsClient';\nimport { Screen } from '../views/Screen';\n\nTopTabs.Screen = Screen;\n\nexport { TopTabs };\n\nexport * from '../react-navigation/material-top-tabs';\n\nexport default TopTabs;\n"]}
|
|
@@ -3,7 +3,7 @@ import type { MaterialTopTabNavigationEventMap, MaterialTopTabNavigationOptions
|
|
|
3
3
|
import type { ParamListBase, TabNavigationState } from '../react-navigation/native';
|
|
4
4
|
import { Protected } from '../views/Protected';
|
|
5
5
|
import { Screen } from '../views/Screen';
|
|
6
|
-
declare const MaterialTopTabs: import("react").ForwardRefExoticComponent<Omit<import("..").PickPartial<Omit<import("
|
|
6
|
+
declare const MaterialTopTabs: import("react").ForwardRefExoticComponent<Omit<import("..").PickPartial<Omit<import("./TopTabs").MaterialTopTabNavigatorProps, "children" | "initialRouteName" | "layout" | "screenListeners" | "screenOptions" | "screenLayout" | "UNSTABLE_router" | "UNSTABLE_routeNamesChangeBehavior" | "id"> & import("../react-navigation").DefaultRouterOptions<string> & ({
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
layout?: ((props: {
|
|
9
9
|
state: TabNavigationState<ParamListBase>;
|
|
@@ -22,7 +22,7 @@ declare const MaterialTopTabs: import("react").ForwardRefExoticComponent<Omit<im
|
|
|
22
22
|
beforeRemove: import("../react-navigation").EventListenerCallback<MaterialTopTabNavigationEventMap & import("../react-navigation").EventMapCore<TabNavigationState<ParamListBase>>, "beforeRemove", true>;
|
|
23
23
|
}> | ((props: {
|
|
24
24
|
route: import("../react-navigation").RouteProp<ParamListBase, string>;
|
|
25
|
-
navigation: import("
|
|
25
|
+
navigation: import("./TopTabs").MaterialTopTabNavigationProp<ParamListBase, string, string | undefined>;
|
|
26
26
|
}) => Partial<{
|
|
27
27
|
tabPress: import("../react-navigation").EventListenerCallback<MaterialTopTabNavigationEventMap & import("../react-navigation").EventMapCore<TabNavigationState<ParamListBase>>, "tabPress", true>;
|
|
28
28
|
tabLongPress: import("../react-navigation").EventListenerCallback<MaterialTopTabNavigationEventMap & import("../react-navigation").EventMapCore<TabNavigationState<ParamListBase>>, "tabLongPress", unknown>;
|
|
@@ -35,10 +35,10 @@ declare const MaterialTopTabs: import("react").ForwardRefExoticComponent<Omit<im
|
|
|
35
35
|
}>) | undefined;
|
|
36
36
|
screenOptions?: MaterialTopTabNavigationOptions | ((props: {
|
|
37
37
|
route: import("../react-navigation").RouteProp<ParamListBase, string>;
|
|
38
|
-
navigation: import("
|
|
38
|
+
navigation: import("./TopTabs").MaterialTopTabNavigationProp<ParamListBase, string, string | undefined>;
|
|
39
39
|
theme: ReactNavigation.Theme;
|
|
40
40
|
}) => MaterialTopTabNavigationOptions) | undefined;
|
|
41
|
-
screenLayout?: ((props: import("../react-navigation").ScreenLayoutArgs<ParamListBase, string, MaterialTopTabNavigationOptions, import("
|
|
41
|
+
screenLayout?: ((props: import("../react-navigation").ScreenLayoutArgs<ParamListBase, string, MaterialTopTabNavigationOptions, import("./TopTabs").MaterialTopTabNavigationProp<ParamListBase, string, string | undefined>>) => React.ReactElement) | undefined;
|
|
42
42
|
UNSTABLE_router?: (<Action extends Readonly<{
|
|
43
43
|
type: string;
|
|
44
44
|
payload?: object;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native.ios.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/stack-utils/toolbar/StackToolbarButton/native.ios.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAGxD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,
|
|
1
|
+
{"version":3,"file":"native.ios.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/stack-utils/toolbar/StackToolbarButton/native.ios.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAGxD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA+BlE,CAAC"}
|
|
@@ -13,6 +13,9 @@ const native_1 = require("../../../../toolbar/native");
|
|
|
13
13
|
const NativeToolbarButton = (props) => {
|
|
14
14
|
const id = (0, react_1.useId)();
|
|
15
15
|
const renderingMode = props.imageRenderingMode ?? (props.tintColor !== undefined ? 'template' : 'original');
|
|
16
|
+
if (process.env.NODE_ENV !== 'production' && props.source) {
|
|
17
|
+
console.warn('Stack.Toolbar.Button in placement="bottom" on iOS does not support image icons via the `icon` prop or <Stack.Toolbar.Icon src={...} />; the image will not render. Use the `icon` prop with a string SF Symbol name (e.g. "star.fill"), the `image` prop for a custom image, or <Stack.Toolbar.Icon xcasset="..." /> for an Xcode asset catalog image.');
|
|
18
|
+
}
|
|
16
19
|
return ((0, jsx_runtime_1.jsx)(native_1.RouterToolbarItem, { accessibilityHint: props.accessibilityHint, accessibilityLabel: props.accessibilityLabel, barButtonItemStyle: props.variant === 'done' ? 'prominent' : props.variant, disabled: props.disabled, hidden: props.hidden, hidesSharedBackground: props.hidesSharedBackground, identifier: id, image: props.image, imageRenderingMode: renderingMode, onSelected: props.onPress, possibleTitles: props.possibleTitles, selected: props.selected, sharesBackground: !props.separateBackground, systemImageName: props.icon, xcassetName: props.xcassetName, title: props.label, tintColor: props.tintColor, titleStyle: react_native_1.StyleSheet.flatten(props.style) }));
|
|
17
20
|
};
|
|
18
21
|
exports.NativeToolbarButton = NativeToolbarButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native.ios.js","sourceRoot":"","sources":["../../../../../src/layouts/stack-utils/toolbar/StackToolbarButton/native.ios.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;AACb,iCAA8B;AAC9B,+CAA0C;AAG1C,uDAA+D;AAE/D;;;GAGG;AACI,MAAM,mBAAmB,GAAuC,CAAC,KAAK,EAAE,EAAE;IAC/E,MAAM,EAAE,GAAG,IAAA,aAAK,GAAE,CAAC;IACnB,MAAM,aAAa,GACjB,KAAK,CAAC,kBAAkB,IAAI,CAAC,KAAK,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;IACxF,OAAO,CACL,uBAAC,0BAAiB,IAChB,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,EAC1C,kBAAkB,EAAE,KAAK,CAAC,kBAAkB,EAC5C,kBAAkB,EAAE,KAAK,CAAC,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,EAC1E,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,qBAAqB,EAAE,KAAK,CAAC,qBAAqB,EAClD,UAAU,EAAE,EAAE,EACd,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,kBAAkB,EAAE,aAAa,EACjC,UAAU,EAAE,KAAK,CAAC,OAAO,EACzB,cAAc,EAAE,KAAK,CAAC,cAAc,EACpC,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAC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B,EAClD,UAAU,EAAE,EAAE,EACd,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,kBAAkB,EAAE,aAAa,EACjC,UAAU,EAAE,KAAK,CAAC,OAAO,EACzB,cAAc,EAAE,KAAK,CAAC,cAAc,EACpC,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,gBAAgB,EAAE,CAAC,KAAK,CAAC,kBAAkB,EAC3C,eAAe,EAAE,KAAK,CAAC,IAAI,EAC3B,WAAW,EAAE,KAAK,CAAC,WAAW,EAC9B,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,UAAU,EAAE,yBAAU,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,GAC3C,CACH,CAAC;AACJ,CAAC,CAAC;AA/BW,QAAA,mBAAmB,uBA+B9B","sourcesContent":["'use client';\nimport { useId } from 'react';\nimport { StyleSheet } from 'react-native';\n\nimport type { NativeToolbarButtonProps } from './types';\nimport { RouterToolbarItem } from '../../../../toolbar/native';\n\n/**\n * Native toolbar button component for bottom toolbar.\n * Renders as RouterToolbarItem.\n */\nexport const NativeToolbarButton: React.FC<NativeToolbarButtonProps> = (props) => {\n const id = useId();\n const renderingMode =\n props.imageRenderingMode ?? (props.tintColor !== undefined ? 'template' : 'original');\n if (process.env.NODE_ENV !== 'production' && props.source) {\n console.warn(\n 'Stack.Toolbar.Button in placement=\"bottom\" on iOS does not support image icons via the `icon` prop or <Stack.Toolbar.Icon src={...} />; the image will not render. Use the `icon` prop with a string SF Symbol name (e.g. \"star.fill\"), the `image` prop for a custom image, or <Stack.Toolbar.Icon xcasset=\"...\" /> for an Xcode asset catalog image.'\n );\n }\n return (\n <RouterToolbarItem\n accessibilityHint={props.accessibilityHint}\n accessibilityLabel={props.accessibilityLabel}\n barButtonItemStyle={props.variant === 'done' ? 'prominent' : props.variant}\n disabled={props.disabled}\n hidden={props.hidden}\n hidesSharedBackground={props.hidesSharedBackground}\n identifier={id}\n image={props.image}\n imageRenderingMode={renderingMode}\n onSelected={props.onPress}\n possibleTitles={props.possibleTitles}\n selected={props.selected}\n sharesBackground={!props.separateBackground}\n systemImageName={props.icon}\n xcassetName={props.xcassetName}\n title={props.label}\n tintColor={props.tintColor}\n titleStyle={StyleSheet.flatten(props.style)}\n />\n );\n};\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { SharedRef } from 'expo';
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
3
|
import type { ColorValue, ImageSourcePropType, StyleProp, TextStyle } from 'react-native';
|
|
4
4
|
import type { SFSymbol } from 'sf-symbols-typescript';
|
|
@@ -100,7 +100,7 @@ export interface StackToolbarButtonProps {
|
|
|
100
100
|
*
|
|
101
101
|
* @platform ios
|
|
102
102
|
*/
|
|
103
|
-
image?: SharedRef<'image'
|
|
103
|
+
image?: InstanceType<SharedRef<'image'>> | null;
|
|
104
104
|
/**
|
|
105
105
|
* Controls how image-based icons are rendered.
|
|
106
106
|
*
|
|
@@ -168,7 +168,7 @@ export interface NativeToolbarButtonProps {
|
|
|
168
168
|
hidesSharedBackground?: boolean;
|
|
169
169
|
icon?: SFSymbol;
|
|
170
170
|
xcassetName?: string;
|
|
171
|
-
image?: SharedRef<'image'
|
|
171
|
+
image?: InstanceType<SharedRef<'image'>> | null;
|
|
172
172
|
imageRenderingMode?: 'template' | 'original';
|
|
173
173
|
onPress?: () => void;
|
|
174
174
|
possibleTitles?: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/stack-utils/toolbar/StackToolbarButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/stack-utils/toolbar/StackToolbarButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AACjC,OAAO,KAA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A0B,CAAC,WAAW,CAAC,CAAC;IACpD;;;OAGG;IACH,OAAO,CAAC,EAAE,0BAA0B,CAAC,SAAS,CAAC,CAAC;CACjD;AAED,MAAM,WAAW,wBAAwB;IACvC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,YAAY,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC;IAChD,kBAAkB,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IAC7C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,KAAK,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IAClC,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,WAAW,CAAC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAC9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/layouts/stack-utils/toolbar/StackToolbarButton/types.ts"],"names":[],"mappings":"","sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/layouts/stack-utils/toolbar/StackToolbarButton/types.ts"],"names":[],"mappings":"","sourcesContent":["import { SharedRef } from 'expo';\nimport type { ReactNode } from 'react';\nimport type { ColorValue, ImageSourcePropType, StyleProp, TextStyle } from 'react-native';\nimport type { SFSymbol } from 'sf-symbols-typescript';\n\nimport type { BasicTextStyle } from '../../../../utils/font';\nimport type { StackHeaderItemSharedProps } from '../shared';\n\nexport interface StackToolbarButtonProps {\n /**\n * Accessibility label spoken by screen readers (TalkBack/VoiceOver).\n *\n * @see [Android — Compose accessibility for graphic elements](https://developer.android.com/develop/ui/compose/accessibility/api-defaults#graphic-elements) and [Apple — Supporting VoiceOver in your app](https://developer.apple.com/documentation/uikit/supporting-voiceover-in-your-app#Update-your-apps-accessibility) for more information.\n *\n * @platform android\n * @platform ios\n */\n accessibilityLabel?: string;\n /**\n * @platform ios\n */\n accessibilityHint?: string;\n /**\n * There are two ways to specify the content of the button:\n *\n * @example\n * ```tsx\n * import { Stack } from 'expo-router';\n *\n * export default function Page() {\n * return (\n * <>\n * <Stack.Toolbar placement=\"left\">\n * <Stack.Toolbar.Button icon=\"star.fill\">As text passed as children</Stack.Toolbar.Button>\n * </Stack.Toolbar>\n * <ScreenContent />\n * </>\n * );\n * }\n * ```\n *\n * @example\n * ```tsx\n * import { Stack } from 'expo-router';\n *\n * export default function Page() {\n * return (\n * <>\n * <Stack.Toolbar placement=\"left\">\n * <Stack.Toolbar.Button>\n * <Stack.Toolbar.Icon sf=\"star.fill\" />\n * <Stack.Toolbar.Label>As components</Stack.Toolbar.Label>\n * <Stack.Toolbar.Badge>3</Stack.Toolbar.Badge>\n * </Stack.Toolbar.Button>\n * </Stack.Toolbar>\n * <ScreenContent />\n * </>\n * );\n * }\n * ```\n *\n * > **Note**: When icon is used, the label will not be shown and will be used for accessibility purposes only. Badge is only supported in left/right placements, not in bottom (iOS toolbar limitation).\n */\n children?: ReactNode;\n /**\n * @platform android\n * @platform ios\n */\n disabled?: boolean;\n /**\n * Whether the button should be hidden.\n *\n * @default false\n *\n * @platform android\n * @platform ios\n */\n hidden?: boolean;\n /**\n * Whether to hide the shared background.\n *\n * @platform iOS 26+\n */\n hidesSharedBackground?: boolean;\n /**\n * Icon to display in the button.\n *\n * On Android, only image source is supported.\n *\n * On iOS, it can be a string representing an SFSymbol, an image source or xcasset.\n *\n * > **Note**: When used in `placement=\"bottom\"` on iOS, only string SFSymbols are supported. Use the `image` prop to provide custom images.\n *\n * @platform android\n * @platform ios\n */\n icon?: StackHeaderItemSharedProps['icon'];\n // TODO(@ubax): Add useImage support in a follow-up PR.\n /**\n * Image to display in the button.\n *\n * > **Note**: This prop is only supported in toolbar with `placement=\"bottom\"`.\n *\n * @platform ios\n */\n image?: InstanceType<SharedRef<'image'>> | null;\n /**\n * Controls how image-based icons are rendered.\n *\n * - `'template'`: applies tint color to the icon\n * - `'original'`: preserves original icon colors (useful for multi-color icons)\n *\n * **Default behavior on iOS:**\n * - If `tintColor` is specified, defaults to `'template'`\n * - If no `tintColor`, defaults to `'original'`\n *\n * **On Android:** defaults to `'template'`.\n *\n * This prop only affects image-based icons (not SF Symbols).\n *\n * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uiimage/renderingmode-swift.enum) for more information.\n *\n * @platform android\n * @platform ios\n */\n iconRenderingMode?: 'template' | 'original';\n onPress?: () => void;\n /**\n * Whether to separate the background of this item from other header items.\n *\n * @default false\n * @platform ios\n */\n separateBackground?: boolean;\n /**\n * Whether the button is in a selected state\n *\n * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uibarbuttonitem/isselected) for more information\n *\n * @platform ios\n */\n selected?: boolean;\n /**\n * Style for the label of the header item.\n *\n * @platform android\n * @platform ios\n */\n style?: StyleProp<TextStyle>;\n /**\n * The tint color to apply to the button item.\n *\n * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uibarbuttonitem/tintcolor) for more information.\n * @see [Android documentation](https://developer.android.com/develop/ui/compose/graphics/images/customize#tint-image) for more information.\n *\n * @platform android\n * @platform ios\n */\n tintColor?: StackHeaderItemSharedProps['tintColor'];\n /**\n * @default 'plain'\n * @platform ios\n */\n variant?: StackHeaderItemSharedProps['variant'];\n}\n\nexport interface NativeToolbarButtonProps {\n accessibilityLabel?: string;\n accessibilityHint?: string;\n disabled?: boolean;\n hidden?: boolean;\n hidesSharedBackground?: boolean;\n icon?: SFSymbol;\n xcassetName?: string;\n image?: InstanceType<SharedRef<'image'>> | null;\n imageRenderingMode?: 'template' | 'original';\n onPress?: () => void;\n possibleTitles?: string[];\n selected?: boolean;\n separateBackground?: boolean;\n style?: StyleProp<BasicTextStyle>;\n tintColor?: ColorValue;\n variant?: 'plain' | 'done' | 'prominent';\n label?: string;\n /* @platform android */\n source?: ImageSourcePropType;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native.ios.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/stack-utils/toolbar/StackToolbarMenu/native.ios.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAG3D;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,
|
|
1
|
+
{"version":3,"file":"native.ios.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/stack-utils/toolbar/StackToolbarMenu/native.ios.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAG3D;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA2D9D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,uBAAiB,CAAC"}
|
|
@@ -11,10 +11,13 @@ const native_1 = require("../../../../link/preview/native");
|
|
|
11
11
|
* Native toolbar menu component for bottom toolbar.
|
|
12
12
|
* Renders as NativeLinkPreviewAction.
|
|
13
13
|
*/
|
|
14
|
-
const NativeToolbarMenu = ({ accessibilityHint, accessibilityLabel, separateBackground, hidesSharedBackground, palette, inline, hidden, subtitle, title, label, destructive, children, icon, xcassetName, image, imageRenderingMode, tintColor, variant, style, elementSize, }) => {
|
|
14
|
+
const NativeToolbarMenu = ({ accessibilityHint, accessibilityLabel, separateBackground, hidesSharedBackground, palette, inline, hidden, subtitle, title, label, destructive, children, icon, source, xcassetName, image, imageRenderingMode, tintColor, variant, style, elementSize, }) => {
|
|
15
15
|
const identifier = (0, react_1.useId)();
|
|
16
16
|
const titleStyle = react_native_1.StyleSheet.flatten(style);
|
|
17
17
|
const renderingMode = imageRenderingMode ?? (tintColor !== undefined ? 'template' : 'original');
|
|
18
|
+
if (process.env.NODE_ENV !== 'production' && source) {
|
|
19
|
+
console.warn('Stack.Toolbar.Menu in placement="bottom" on iOS does not support image icons via the `icon` prop or <Stack.Toolbar.Icon src={...} />; the image will not render. Use the `icon` prop with a string SF Symbol name (e.g. "star.fill"), the `image` prop for a custom image, or <Stack.Toolbar.Icon xcasset="..." /> for an Xcode asset catalog image.');
|
|
20
|
+
}
|
|
18
21
|
return ((0, jsx_runtime_1.jsx)(native_1.NativeLinkPreviewAction, { sharesBackground: !separateBackground, hidesSharedBackground: hidesSharedBackground, hidden: hidden, icon: icon, xcassetName: xcassetName,
|
|
19
22
|
// TODO(@ubax): Handle image loading using useImage in a follow-up PR.
|
|
20
23
|
image: image, imageRenderingMode: renderingMode, destructive: destructive, subtitle: subtitle, accessibilityLabel: accessibilityLabel, accessibilityHint: accessibilityHint, displayAsPalette: palette, displayInline: inline, preferredElementSize: elementSize, tintColor: tintColor, titleStyle: titleStyle, barButtonItemStyle: variant === 'done' ? 'prominent' : variant, title: title ?? '', label: label, onSelected: () => { }, children: children, identifier: identifier }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native.ios.js","sourceRoot":"","sources":["../../../../../src/layouts/stack-utils/toolbar/StackToolbarMenu/native.ios.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;AACb,iCAA8B;AAC9B,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E,CAAC,EACpB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,UAAU,GACtB,CACH,CAAC;AACJ,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"native.ios.js","sourceRoot":"","sources":["../../../../../src/layouts/stack-utils/toolbar/StackToolbarMenu/native.ios.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;AACb,iCAA8B;AAC9B,+CAA0C;AAG1C,wDAA2D;AAC3D,4DAA0E;AAE1E;;;GAGG;AACI,MAAM,iBAAiB,GAAqC,CAAC,EAClE,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,OAAO,EACP,MAAM,EACN,MAAM,EACN,QAAQ,EACR,KAAK,EACL,KAAK,EACL,WAAW,EACX,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,WAAW,EACX,KAAK,EACL,kBAAkB,EAClB,SAAS,EACT,OAAO,EACP,KAAK,EACL,WAAW,GACZ,EAAE,EAAE;IACH,MAAM,UAAU,GAAG,IAAA,aAAK,GAAE,CAAC;IAE3B,MAAM,UAAU,GAAG,yBAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC7C,MAAM,aAAa,GAAG,kBAAkB,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;IAChG,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,IAAI,MAAM,EAAE,CAAC;QACpD,OAAO,CAAC,IAAI,CACV,sVAAsV,CACvV,CAAC;IACJ,CAAC;IACD,OAAO,CACL,uBAAC,gCAAuB,IACtB,gBAAgB,EAAE,CAAC,kBAAkB,EACrC,qBAAqB,EAAE,qBAAqB,EAC5C,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,WAAW;QACxB,sEAAsE;QACtE,KAAK,EAAE,KAAK,EACZ,kBAAkB,EAAE,aAAa,EACjC,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,kBAAkB,EAAE,kBAAkB,EACtC,iBAAiB,EAAE,iBAAiB,EACpC,gBAAgB,EAAE,OAAO,EACzB,aAAa,EAAE,MAAM,EACrB,oBAAoB,EAAE,WAAW,EACjC,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,kBAAkB,EAAE,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,EAC9D,KAAK,EAAE,KAAK,IAAI,EAAE,EAClB,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,GAAG,EAAE,GAAE,CAAC,EACpB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,UAAU,GACtB,CACH,CAAC;AACJ,CAAC,CAAC;AA3DW,QAAA,iBAAiB,qBA2D5B;AAEF;;GAEG;AACU,QAAA,uBAAuB,GAAG,yBAAc,CAAC","sourcesContent":["'use client';\nimport { useId } from 'react';\nimport { StyleSheet } from 'react-native';\n\nimport type { NativeToolbarMenuProps } from './types';\nimport { LinkMenuAction } from '../../../../link/elements';\nimport { NativeLinkPreviewAction } from '../../../../link/preview/native';\n\n/**\n * Native toolbar menu component for bottom toolbar.\n * Renders as NativeLinkPreviewAction.\n */\nexport const NativeToolbarMenu: React.FC<NativeToolbarMenuProps> = ({\n accessibilityHint,\n accessibilityLabel,\n separateBackground,\n hidesSharedBackground,\n palette,\n inline,\n hidden,\n subtitle,\n title,\n label,\n destructive,\n children,\n icon,\n source,\n xcassetName,\n image,\n imageRenderingMode,\n tintColor,\n variant,\n style,\n elementSize,\n}) => {\n const identifier = useId();\n\n const titleStyle = StyleSheet.flatten(style);\n const renderingMode = imageRenderingMode ?? (tintColor !== undefined ? 'template' : 'original');\n if (process.env.NODE_ENV !== 'production' && source) {\n console.warn(\n 'Stack.Toolbar.Menu in placement=\"bottom\" on iOS does not support image icons via the `icon` prop or <Stack.Toolbar.Icon src={...} />; the image will not render. Use the `icon` prop with a string SF Symbol name (e.g. \"star.fill\"), the `image` prop for a custom image, or <Stack.Toolbar.Icon xcasset=\"...\" /> for an Xcode asset catalog image.'\n );\n }\n return (\n <NativeLinkPreviewAction\n sharesBackground={!separateBackground}\n hidesSharedBackground={hidesSharedBackground}\n hidden={hidden}\n icon={icon}\n xcassetName={xcassetName}\n // TODO(@ubax): Handle image loading using useImage in a follow-up PR.\n image={image}\n imageRenderingMode={renderingMode}\n destructive={destructive}\n subtitle={subtitle}\n accessibilityLabel={accessibilityLabel}\n accessibilityHint={accessibilityHint}\n displayAsPalette={palette}\n displayInline={inline}\n preferredElementSize={elementSize}\n tintColor={tintColor}\n titleStyle={titleStyle}\n barButtonItemStyle={variant === 'done' ? 'prominent' : variant}\n title={title ?? ''}\n label={label}\n onSelected={() => {}}\n children={children}\n identifier={identifier}\n />\n );\n};\n\n/**\n * Native toolbar menu action - reuses LinkMenuAction.\n */\nexport const NativeToolbarMenuAction = LinkMenuAction;\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { SharedRef } from 'expo';
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
3
|
import type { ColorValue, ImageSourcePropType, StyleProp, TextStyle } from 'react-native';
|
|
4
4
|
import type { SFSymbol } from 'sf-symbols-typescript';
|
|
@@ -54,7 +54,7 @@ export interface StackToolbarMenuProps {
|
|
|
54
54
|
*
|
|
55
55
|
* @platform ios
|
|
56
56
|
*/
|
|
57
|
-
image?: SharedRef<'image'
|
|
57
|
+
image?: InstanceType<SharedRef<'image'>> | null;
|
|
58
58
|
/**
|
|
59
59
|
* Whether to hide the shared background.
|
|
60
60
|
*
|
|
@@ -192,7 +192,7 @@ export interface NativeToolbarMenuProps {
|
|
|
192
192
|
/**
|
|
193
193
|
* Image to display for the menu item.
|
|
194
194
|
*/
|
|
195
|
-
image?: SharedRef<'image'
|
|
195
|
+
image?: InstanceType<SharedRef<'image'>> | null;
|
|
196
196
|
imageRenderingMode?: 'template' | 'original';
|
|
197
197
|
inline?: boolean;
|
|
198
198
|
label?: string;
|
|
@@ -233,7 +233,7 @@ export interface StackToolbarMenuActionProps {
|
|
|
233
233
|
*
|
|
234
234
|
* @platform ios
|
|
235
235
|
*/
|
|
236
|
-
image?: SharedRef<'image'
|
|
236
|
+
image?: InstanceType<SharedRef<'image'>> | null;
|
|
237
237
|
/**
|
|
238
238
|
* Controls how image-based icons are rendered on iOS.
|
|
239
239
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/stack-utils/toolbar/StackToolbarMenu/types.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/stack-utils/toolbar/StackToolbarMenu/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC1F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;AAE5D,MAAM,WAAW,qBAAqB;IACpC;;;;;;;OAOG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;OAMG;IACH,KAA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AC,EAAE,MAAM,IAAI,CAAC;IACrB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,4BAA6B,SAAQ,mBAAmB;IACvE,wBAAwB;IACxB,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAC9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/layouts/stack-utils/toolbar/StackToolbarMenu/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { SharedRef } from 'expo';\nimport type { ReactNode } from 'react';\nimport type { ColorValue, ImageSourcePropType, StyleProp, TextStyle } from 'react-native';\nimport type { SFSymbol } from 'sf-symbols-typescript';\n\nimport type { LinkMenuActionProps } from '../../../../link/elements';\nimport type { StackHeaderItemSharedProps } from '../shared';\n\nexport interface StackToolbarMenuProps {\n /**\n * Accessibility label spoken by screen readers (TalkBack/VoiceOver).\n *\n * @see [Android — Compose accessibility for graphic elements](https://developer.android.com/develop/ui/compose/accessibility/api-defaults#graphic-elements) and [Apple — Supporting VoiceOver in your app](https://developer.apple.com/documentation/uikit/supporting-voiceover-in-your-app#Update-your-apps-accessibility) for more information.\n *\n * @platform android\n * @platform ios\n */\n accessibilityLabel?: string;\n /**\n * @platform ios\n */\n accessibilityHint?: string;\n /**\n * Menu content - can include icons, labels, badges and menu actions.\n *\n * @example\n * ```tsx\n * <Stack.Toolbar.Menu>\n * <Stack.Toolbar.Icon sfSymbol=\"ellipsis.circle\" />\n * <Stack.Toolbar.Label>Options</Stack.Toolbar.Label>\n * <Stack.Toolbar.MenuAction onPress={() => {}}>Action 1</Stack.Toolbar.MenuAction>\n * </Stack.Toolbar.Menu>\n * ```\n *\n * @platform android\n * @platform ios\n */\n children?: ReactNode;\n /**\n * If `true`, the menu item will be displayed as destructive.\n *\n * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uimenuelement/attributes/destructive) for more information.\n *\n * @platform ios\n */\n destructive?: boolean;\n /**\n * @platform android\n * @platform ios\n */\n disabled?: boolean;\n // TODO(@ubax): Add useImage support in a follow-up PR.\n /**\n * Image to display for the menu item.\n *\n * > **Note**: This prop is only supported in toolbar with `placement=\"bottom\"`.\n *\n * @platform ios\n */\n image?: SharedRef<'image'>;\n /**\n * Whether to hide the shared background.\n *\n * @see [Official Apple documentation](https://developer.apple.com/documentation/uikit/uibarbuttonitem/hidessharedbackground) for more information.\n *\n * @platform iOS 26+\n */\n hidesSharedBackground?: boolean;\n /**\n * Whether the menu should be hidden.\n *\n * @default false\n *\n * @platform android\n * @platform ios\n */\n hidden?: boolean;\n /**\n * Icon for the menu item.\n *\n * Can be an SF Symbol name or an image source.\n *\n * > **Note**: When used in `placement=\"bottom\"` on iOS, only string SFSymbols are supported. Use the `image` prop to provide custom images.\n *\n * > **Note (Android)**: Only `ImageSourcePropType` icons are rendered at the menu root.\n * > SF Symbols and `xcasset` names are silently dropped — provide a `require()` or\n * > `{ uri }` source.\n *\n * @platform android\n * @platform ios\n */\n icon?: StackHeaderItemSharedProps['icon'];\n /**\n * Controls how image-based icons are rendered.\n *\n * - `'template'`: applies tint color to the icon (useful for monochrome icons)\n * - `'original'`: preserves original icon colors (useful for multi-color icons)\n *\n * **Default behavior on iOS:**\n * - If `tintColor` is specified, defaults to `'template'`\n * - If no `tintColor`, defaults to `'original'`\n *\n * **On Android:** defaults to `'template'`.\n *\n * This prop only affects image-based icons (not SF Symbols).\n *\n * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uiimage/renderingmode-swift.enum) for more information.\n *\n * @platform android\n * @platform ios\n */\n iconRenderingMode?: 'template' | 'original';\n /**\n * If `true`, the menu will be displayed inline.\n * This means that the menu will not be collapsed.\n *\n * > **Note**: Inline menus are only supported in submenus.\n *\n * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uimenu/options-swift.struct/displayinline) for more information.\n *\n * @platform android\n * @platform ios\n */\n inline?: boolean;\n /**\n * If `true`, the menu will be displayed as a palette.\n * This means that the menu will be displayed as one row.\n *\n * > **Note**: Palette menus are only supported in submenus.\n *\n * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uimenu/options-swift.struct/displayaspalette) for more information.\n *\n * @platform ios\n */\n palette?: boolean;\n /**\n * Whether to separate the background of this item from other header items.\n *\n * @default false\n * @platform ios\n */\n separateBackground?: boolean;\n /**\n * Style for the label of the header item.\n *\n * @platform android\n * @platform ios\n */\n style?: StackHeaderItemSharedProps['style'];\n /**\n * The tint color to apply to the button item.\n *\n * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uibarbuttonitem/tintcolor) for more information.\n * @see [Android documentation](https://developer.android.com/develop/ui/compose/graphics/images/customize#tint-image) for more information.\n *\n * @platform android\n * @platform ios\n */\n tintColor?: StackHeaderItemSharedProps['tintColor'];\n /**\n * Optional title to show on top of the menu.\n *\n * @platform android\n * @platform ios\n */\n title?: string;\n /**\n * @default 'plain'\n *\n * @platform ios\n */\n variant?: StackHeaderItemSharedProps['variant'];\n // TODO(@ubax): Add elementSize support in react-native-screens for header menus.\n /**\n * The preferred size of the menu elements.\n *\n * > **Note**: This prop is only supported in `Stack.Toolbar.Bottom`.\n *\n * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uimenu/preferredelementsize) for more information.\n *\n * @platform iOS 16.0+\n */\n elementSize?: 'auto' | 'small' | 'medium' | 'large';\n}\n\nexport interface NativeToolbarMenuProps {\n accessibilityLabel?: string;\n accessibilityHint?: string;\n children?: ReactNode;\n subtitle?: string;\n destructive?: boolean;\n disabled?: boolean;\n hidden?: boolean;\n hidesSharedBackground?: boolean;\n icon?: SFSymbol;\n xcassetName?: string;\n // TODO(@ubax): Add useImage support in a follow-up PR.\n /**\n * Image to display for the menu item.\n */\n image?: SharedRef<'image'>;\n imageRenderingMode?: 'template' | 'original';\n inline?: boolean;\n label?: string;\n palette?: boolean;\n separateBackground?: boolean;\n style?: StyleProp<TextStyle>;\n title?: string;\n tintColor?: ColorValue;\n variant?: 'plain' | 'done' | 'prominent';\n elementSize?: 'auto' | 'small' | 'medium' | 'large';\n /** @platform android */\n source?: ImageSourcePropType;\n}\n\nexport interface StackToolbarMenuActionProps {\n /**\n * Can be an Icon, Label or string title.\n */\n children?: ReactNode;\n /**\n * If `true`, the menu item will be disabled and not selectable.\n *\n * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uimenuelement/attributes/disabled) for more information.\n */\n disabled?: boolean;\n /**\n * Icon for the menu action.\n *\n * Can be an SF Symbol name or an image source.\n *\n * > **Note (Android)**: Only `ImageSourcePropType` icons are rendered. SF Symbols are\n * > silently dropped. Provide a `require()` or `{ uri }` source.\n */\n icon?: SFSymbol | ImageSourcePropType;\n // TODO(@ubax): Add useImage support in a follow-up PR.\n /**\n * Image to display for the menu action.\n *\n * > **Note**: This prop is only supported in `Stack.Toolbar.Bottom`.\n *\n * @platform ios\n */\n image?: SharedRef<'image'>;\n /**\n * Controls how image-based icons are rendered on iOS.\n *\n * - `'template'`: iOS applies tint color to the icon (useful for monochrome icons)\n * - `'original'`: Preserves original icon colors (useful for multi-color icons)\n *\n * **Default behavior:**\n * - If `tintColor` is specified, defaults to `'template'`\n * - If no `tintColor`, defaults to `'original'`\n *\n * This prop only affects image-based icons (not SF Symbols).\n *\n * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uiimage/renderingmode-swift.enum) for more information.\n *\n * @platform ios\n */\n iconRenderingMode?: 'template' | 'original';\n /**\n * If `true`, the menu item will be displayed as destructive.\n *\n * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uimenuelement/attributes/destructive) for more information.\n *\n * @platform android\n * @platform ios\n */\n destructive?: boolean;\n /**\n * If `true`, the menu will be kept presented after the action is selected.\n *\n * This is marked as unstable, because when action is selected on iOS it will recreate\n * the menu, which will close all opened submenus and reset the scroll position.\n *\n * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uimenuelement/attributes/keepsmenupresented) for more information.\n *\n * @platform android\n * @platform ios\n */\n unstable_keepPresented?: boolean;\n /**\n * If `true`, the menu item will be displayed as selected.\n *\n * @platform android\n * @platform ios\n */\n isOn?: boolean;\n onPress?: () => void;\n /**\n * An elaborated title that explains the purpose of the action.\n *\n * @platform ios\n */\n discoverabilityLabel?: string;\n /**\n * An optional subtitle for the menu item.\n *\n * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uimenuelement/subtitle) for more information.\n *\n * @platform ios\n */\n subtitle?: string;\n hidden?: boolean;\n}\n\nexport interface NativeToolbarMenuActionProps extends LinkMenuActionProps {\n /** @platform android */\n source?: ImageSourcePropType;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/layouts/stack-utils/toolbar/StackToolbarMenu/types.ts"],"names":[],"mappings":"","sourcesContent":["import { SharedRef } from 'expo';\nimport type { ReactNode } from 'react';\nimport type { ColorValue, ImageSourcePropType, StyleProp, TextStyle } from 'react-native';\nimport type { SFSymbol } from 'sf-symbols-typescript';\n\nimport type { LinkMenuActionProps } from '../../../../link/elements';\nimport type { StackHeaderItemSharedProps } from '../shared';\n\nexport interface StackToolbarMenuProps {\n /**\n * Accessibility label spoken by screen readers (TalkBack/VoiceOver).\n *\n * @see [Android — Compose accessibility for graphic elements](https://developer.android.com/develop/ui/compose/accessibility/api-defaults#graphic-elements) and [Apple — Supporting VoiceOver in your app](https://developer.apple.com/documentation/uikit/supporting-voiceover-in-your-app#Update-your-apps-accessibility) for more information.\n *\n * @platform android\n * @platform ios\n */\n accessibilityLabel?: string;\n /**\n * @platform ios\n */\n accessibilityHint?: string;\n /**\n * Menu content - can include icons, labels, badges and menu actions.\n *\n * @example\n * ```tsx\n * <Stack.Toolbar.Menu>\n * <Stack.Toolbar.Icon sfSymbol=\"ellipsis.circle\" />\n * <Stack.Toolbar.Label>Options</Stack.Toolbar.Label>\n * <Stack.Toolbar.MenuAction onPress={() => {}}>Action 1</Stack.Toolbar.MenuAction>\n * </Stack.Toolbar.Menu>\n * ```\n *\n * @platform android\n * @platform ios\n */\n children?: ReactNode;\n /**\n * If `true`, the menu item will be displayed as destructive.\n *\n * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uimenuelement/attributes/destructive) for more information.\n *\n * @platform ios\n */\n destructive?: boolean;\n /**\n * @platform android\n * @platform ios\n */\n disabled?: boolean;\n // TODO(@ubax): Add useImage support in a follow-up PR.\n /**\n * Image to display for the menu item.\n *\n * > **Note**: This prop is only supported in toolbar with `placement=\"bottom\"`.\n *\n * @platform ios\n */\n image?: InstanceType<SharedRef<'image'>> | null;\n /**\n * Whether to hide the shared background.\n *\n * @see [Official Apple documentation](https://developer.apple.com/documentation/uikit/uibarbuttonitem/hidessharedbackground) for more information.\n *\n * @platform iOS 26+\n */\n hidesSharedBackground?: boolean;\n /**\n * Whether the menu should be hidden.\n *\n * @default false\n *\n * @platform android\n * @platform ios\n */\n hidden?: boolean;\n /**\n * Icon for the menu item.\n *\n * Can be an SF Symbol name or an image source.\n *\n * > **Note**: When used in `placement=\"bottom\"` on iOS, only string SFSymbols are supported. Use the `image` prop to provide custom images.\n *\n * > **Note (Android)**: Only `ImageSourcePropType` icons are rendered at the menu root.\n * > SF Symbols and `xcasset` names are silently dropped — provide a `require()` or\n * > `{ uri }` source.\n *\n * @platform android\n * @platform ios\n */\n icon?: StackHeaderItemSharedProps['icon'];\n /**\n * Controls how image-based icons are rendered.\n *\n * - `'template'`: applies tint color to the icon (useful for monochrome icons)\n * - `'original'`: preserves original icon colors (useful for multi-color icons)\n *\n * **Default behavior on iOS:**\n * - If `tintColor` is specified, defaults to `'template'`\n * - If no `tintColor`, defaults to `'original'`\n *\n * **On Android:** defaults to `'template'`.\n *\n * This prop only affects image-based icons (not SF Symbols).\n *\n * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uiimage/renderingmode-swift.enum) for more information.\n *\n * @platform android\n * @platform ios\n */\n iconRenderingMode?: 'template' | 'original';\n /**\n * If `true`, the menu will be displayed inline.\n * This means that the menu will not be collapsed.\n *\n * > **Note**: Inline menus are only supported in submenus.\n *\n * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uimenu/options-swift.struct/displayinline) for more information.\n *\n * @platform android\n * @platform ios\n */\n inline?: boolean;\n /**\n * If `true`, the menu will be displayed as a palette.\n * This means that the menu will be displayed as one row.\n *\n * > **Note**: Palette menus are only supported in submenus.\n *\n * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uimenu/options-swift.struct/displayaspalette) for more information.\n *\n * @platform ios\n */\n palette?: boolean;\n /**\n * Whether to separate the background of this item from other header items.\n *\n * @default false\n * @platform ios\n */\n separateBackground?: boolean;\n /**\n * Style for the label of the header item.\n *\n * @platform android\n * @platform ios\n */\n style?: StackHeaderItemSharedProps['style'];\n /**\n * The tint color to apply to the button item.\n *\n * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uibarbuttonitem/tintcolor) for more information.\n * @see [Android documentation](https://developer.android.com/develop/ui/compose/graphics/images/customize#tint-image) for more information.\n *\n * @platform android\n * @platform ios\n */\n tintColor?: StackHeaderItemSharedProps['tintColor'];\n /**\n * Optional title to show on top of the menu.\n *\n * @platform android\n * @platform ios\n */\n title?: string;\n /**\n * @default 'plain'\n *\n * @platform ios\n */\n variant?: StackHeaderItemSharedProps['variant'];\n // TODO(@ubax): Add elementSize support in react-native-screens for header menus.\n /**\n * The preferred size of the menu elements.\n *\n * > **Note**: This prop is only supported in `Stack.Toolbar.Bottom`.\n *\n * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uimenu/preferredelementsize) for more information.\n *\n * @platform iOS 16.0+\n */\n elementSize?: 'auto' | 'small' | 'medium' | 'large';\n}\n\nexport interface NativeToolbarMenuProps {\n accessibilityLabel?: string;\n accessibilityHint?: string;\n children?: ReactNode;\n subtitle?: string;\n destructive?: boolean;\n disabled?: boolean;\n hidden?: boolean;\n hidesSharedBackground?: boolean;\n icon?: SFSymbol;\n xcassetName?: string;\n // TODO(@ubax): Add useImage support in a follow-up PR.\n /**\n * Image to display for the menu item.\n */\n image?: InstanceType<SharedRef<'image'>> | null;\n imageRenderingMode?: 'template' | 'original';\n inline?: boolean;\n label?: string;\n palette?: boolean;\n separateBackground?: boolean;\n style?: StyleProp<TextStyle>;\n title?: string;\n tintColor?: ColorValue;\n variant?: 'plain' | 'done' | 'prominent';\n elementSize?: 'auto' | 'small' | 'medium' | 'large';\n /** @platform android */\n source?: ImageSourcePropType;\n}\n\nexport interface StackToolbarMenuActionProps {\n /**\n * Can be an Icon, Label or string title.\n */\n children?: ReactNode;\n /**\n * If `true`, the menu item will be disabled and not selectable.\n *\n * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uimenuelement/attributes/disabled) for more information.\n */\n disabled?: boolean;\n /**\n * Icon for the menu action.\n *\n * Can be an SF Symbol name or an image source.\n *\n * > **Note (Android)**: Only `ImageSourcePropType` icons are rendered. SF Symbols are\n * > silently dropped. Provide a `require()` or `{ uri }` source.\n */\n icon?: SFSymbol | ImageSourcePropType;\n // TODO(@ubax): Add useImage support in a follow-up PR.\n /**\n * Image to display for the menu action.\n *\n * > **Note**: This prop is only supported in `Stack.Toolbar.Bottom`.\n *\n * @platform ios\n */\n image?: InstanceType<SharedRef<'image'>> | null;\n /**\n * Controls how image-based icons are rendered on iOS.\n *\n * - `'template'`: iOS applies tint color to the icon (useful for monochrome icons)\n * - `'original'`: Preserves original icon colors (useful for multi-color icons)\n *\n * **Default behavior:**\n * - If `tintColor` is specified, defaults to `'template'`\n * - If no `tintColor`, defaults to `'original'`\n *\n * This prop only affects image-based icons (not SF Symbols).\n *\n * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uiimage/renderingmode-swift.enum) for more information.\n *\n * @platform ios\n */\n iconRenderingMode?: 'template' | 'original';\n /**\n * If `true`, the menu item will be displayed as destructive.\n *\n * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uimenuelement/attributes/destructive) for more information.\n *\n * @platform android\n * @platform ios\n */\n destructive?: boolean;\n /**\n * If `true`, the menu will be kept presented after the action is selected.\n *\n * This is marked as unstable, because when action is selected on iOS it will recreate\n * the menu, which will close all opened submenus and reset the scroll position.\n *\n * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uimenuelement/attributes/keepsmenupresented) for more information.\n *\n * @platform android\n * @platform ios\n */\n unstable_keepPresented?: boolean;\n /**\n * If `true`, the menu item will be displayed as selected.\n *\n * @platform android\n * @platform ios\n */\n isOn?: boolean;\n onPress?: () => void;\n /**\n * An elaborated title that explains the purpose of the action.\n *\n * @platform ios\n */\n discoverabilityLabel?: string;\n /**\n * An optional subtitle for the menu item.\n *\n * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uimenuelement/subtitle) for more information.\n *\n * @platform ios\n */\n subtitle?: string;\n hidden?: boolean;\n}\n\nexport interface NativeToolbarMenuActionProps extends LinkMenuActionProps {\n /** @platform android */\n source?: ImageSourcePropType;\n}\n"]}
|
package/build/link/elements.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { SharedRef } from 'expo';
|
|
2
2
|
import React, { type PropsWithChildren, type ReactNode } from 'react';
|
|
3
3
|
import type { ViewStyle } from 'react-native';
|
|
4
4
|
import type { SFSymbol } from 'sf-symbols-typescript';
|
|
@@ -54,7 +54,7 @@ export interface LinkMenuActionProps {
|
|
|
54
54
|
* </Link.Menu>
|
|
55
55
|
* ```
|
|
56
56
|
*/
|
|
57
|
-
image?: SharedRef<'image'
|
|
57
|
+
image?: InstanceType<SharedRef<'image'>> | null;
|
|
58
58
|
/**
|
|
59
59
|
* Controls how image-based icons are rendered on iOS.
|
|
60
60
|
*
|
|
@@ -133,7 +133,7 @@ export interface LinkMenuProps {
|
|
|
133
133
|
* </Link.Menu>
|
|
134
134
|
* ```
|
|
135
135
|
*/
|
|
136
|
-
image?: SharedRef<'image'
|
|
136
|
+
image?: InstanceType<SharedRef<'image'>> | null;
|
|
137
137
|
/**
|
|
138
138
|
* If `true`, the menu will be displayed as a palette.
|
|
139
139
|
* This means that the menu will be displayed as one row.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elements.d.ts","sourceRoot":"","sources":["../../src/link/elements.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"elements.d.ts","sourceRoot":"","sources":["../../src/link/elements.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AACjC,OAAO,KAAK,EAAE,EAA8B,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAClG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAYtD,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;;;;;;;;;;;;;;;;;OAkBG;IACH,KAAK,CAAC,EAAE,YAAY,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC;IAChD;;;;;;;;;OASG;IACH,kBAAkB,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IAC7C;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;;OAOG;IACH,sBAAsB,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