expo-router 55.0.0-beta.0 → 55.0.0-beta.2
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/exports.d.ts +5 -2
- package/build/exports.d.ts.map +1 -1
- package/build/exports.js +5 -3
- package/build/exports.js.map +1 -1
- package/build/index.d.ts +0 -2
- package/build/index.d.ts.map +1 -1
- package/build/index.js +0 -5
- package/build/index.js.map +1 -1
- package/build/layouts/DrawerClient.d.ts +2 -2
- package/build/layouts/StackClient.d.ts +12 -4
- package/build/layouts/StackClient.d.ts.map +1 -1
- package/build/layouts/StackClient.js +5 -0
- package/build/layouts/StackClient.js.map +1 -1
- package/build/layouts/TabsClient.d.ts +8 -3
- package/build/layouts/TabsClient.d.ts.map +1 -1
- package/build/layouts/TabsClient.js +5 -0
- package/build/layouts/TabsClient.js.map +1 -1
- package/build/layouts/stack-utils/StackScreen.d.ts +44 -5
- package/build/layouts/stack-utils/StackScreen.d.ts.map +1 -1
- package/build/layouts/stack-utils/StackScreen.js +50 -9
- package/build/layouts/stack-utils/StackScreen.js.map +1 -1
- package/build/layouts/stack-utils/toolbar/StackToolbarMenu.js +3 -3
- package/build/layouts/stack-utils/toolbar/StackToolbarMenu.js.map +1 -1
- package/build/link/Link.d.ts +1 -1
- package/build/link/elements.d.ts +2 -10
- package/build/link/elements.d.ts.map +1 -1
- package/build/link/elements.js +1 -9
- package/build/link/elements.js.map +1 -1
- package/build/link/zoom/link-apple-zoom-target.d.ts +24 -2
- package/build/link/zoom/link-apple-zoom-target.d.ts.map +1 -1
- package/build/link/zoom/link-apple-zoom-target.js +20 -0
- package/build/link/zoom/link-apple-zoom-target.js.map +1 -1
- package/build/link/zoom/link-apple-zoom.d.ts +1 -2
- package/build/link/zoom/link-apple-zoom.d.ts.map +1 -1
- package/build/link/zoom/link-apple-zoom.js.map +1 -1
- package/build/native-tabs/NativeTabTrigger.d.ts +2 -6
- package/build/native-tabs/NativeTabTrigger.d.ts.map +1 -1
- package/build/native-tabs/NativeTabTrigger.js +2 -6
- package/build/native-tabs/NativeTabTrigger.js.map +1 -1
- package/build/native-tabs/NativeTabs.d.ts +1 -2
- package/build/native-tabs/NativeTabs.d.ts.map +1 -1
- package/build/native-tabs/NativeTabs.js +1 -2
- package/build/native-tabs/NativeTabs.js.map +1 -1
- package/build/native-tabs/index.d.ts +1 -1
- package/build/native-tabs/index.d.ts.map +1 -1
- package/build/native-tabs/index.js +0 -15
- package/build/native-tabs/index.js.map +1 -1
- package/build/primitives/elements.d.ts +4 -2
- package/build/primitives/elements.d.ts.map +1 -1
- package/build/primitives/elements.js +4 -2
- package/build/primitives/elements.js.map +1 -1
- package/build/primitives/index.d.ts +0 -1
- package/build/primitives/index.d.ts.map +1 -1
- package/build/primitives/index.js +1 -4
- package/build/primitives/index.js.map +1 -1
- package/build/primitives/menu.d.ts +0 -2
- package/build/primitives/menu.d.ts.map +1 -1
- package/build/primitives/menu.js +0 -2
- package/build/primitives/menu.js.map +1 -1
- package/build/primitives/types.d.ts +2 -0
- package/build/primitives/types.d.ts.map +1 -1
- package/build/primitives/types.js.map +1 -1
- package/build/ui/TabContext.d.ts +1 -1
- package/build/ui/TabContext.d.ts.map +1 -1
- package/build/ui/TabRouter.d.ts +2 -2
- package/build/ui/Tabs.d.ts +2 -2
- package/build/ui/Tabs.d.ts.map +1 -1
- package/expo-module.config.json +1 -1
- package/local-maven-repo/expo/modules/router/expo.modules.router/{55.0.0-beta.0/expo.modules.router-55.0.0-beta.0.module → 55.0.0-beta.2/expo.modules.router-55.0.0-beta.2.module} +7 -7
- package/local-maven-repo/expo/modules/router/expo.modules.router/55.0.0-beta.2/expo.modules.router-55.0.0-beta.2.module.md5 +1 -0
- package/local-maven-repo/expo/modules/router/expo.modules.router/55.0.0-beta.2/expo.modules.router-55.0.0-beta.2.module.sha1 +1 -0
- package/local-maven-repo/expo/modules/router/expo.modules.router/55.0.0-beta.2/expo.modules.router-55.0.0-beta.2.module.sha256 +1 -0
- package/local-maven-repo/expo/modules/router/expo.modules.router/55.0.0-beta.2/expo.modules.router-55.0.0-beta.2.module.sha512 +1 -0
- package/local-maven-repo/expo/modules/router/expo.modules.router/{55.0.0-beta.0/expo.modules.router-55.0.0-beta.0.pom → 55.0.0-beta.2/expo.modules.router-55.0.0-beta.2.pom} +1 -1
- package/local-maven-repo/expo/modules/router/expo.modules.router/55.0.0-beta.2/expo.modules.router-55.0.0-beta.2.pom.md5 +1 -0
- package/local-maven-repo/expo/modules/router/expo.modules.router/55.0.0-beta.2/expo.modules.router-55.0.0-beta.2.pom.sha1 +1 -0
- package/local-maven-repo/expo/modules/router/expo.modules.router/55.0.0-beta.2/expo.modules.router-55.0.0-beta.2.pom.sha256 +1 -0
- package/local-maven-repo/expo/modules/router/expo.modules.router/55.0.0-beta.2/expo.modules.router-55.0.0-beta.2.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/local-maven-repo/expo/modules/router/expo.modules.router/55.0.0-beta.0/expo.modules.router-55.0.0-beta.0.module.md5 +0 -1
- package/local-maven-repo/expo/modules/router/expo.modules.router/55.0.0-beta.0/expo.modules.router-55.0.0-beta.0.module.sha1 +0 -1
- package/local-maven-repo/expo/modules/router/expo.modules.router/55.0.0-beta.0/expo.modules.router-55.0.0-beta.0.module.sha256 +0 -1
- package/local-maven-repo/expo/modules/router/expo.modules.router/55.0.0-beta.0/expo.modules.router-55.0.0-beta.0.module.sha512 +0 -1
- package/local-maven-repo/expo/modules/router/expo.modules.router/55.0.0-beta.0/expo.modules.router-55.0.0-beta.0.pom.md5 +0 -1
- package/local-maven-repo/expo/modules/router/expo.modules.router/55.0.0-beta.0/expo.modules.router-55.0.0-beta.0.pom.sha1 +0 -1
- package/local-maven-repo/expo/modules/router/expo.modules.router/55.0.0-beta.0/expo.modules.router-55.0.0-beta.0.pom.sha256 +0 -1
- package/local-maven-repo/expo/modules/router/expo.modules.router/55.0.0-beta.0/expo.modules.router-55.0.0-beta.0.pom.sha512 +0 -1
- /package/local-maven-repo/expo/modules/router/expo.modules.router/{55.0.0-beta.0/expo.modules.router-55.0.0-beta.0-sources.jar → 55.0.0-beta.2/expo.modules.router-55.0.0-beta.2-sources.jar} +0 -0
- /package/local-maven-repo/expo/modules/router/expo.modules.router/{55.0.0-beta.0/expo.modules.router-55.0.0-beta.0-sources.jar.md5 → 55.0.0-beta.2/expo.modules.router-55.0.0-beta.2-sources.jar.md5} +0 -0
- /package/local-maven-repo/expo/modules/router/expo.modules.router/{55.0.0-beta.0/expo.modules.router-55.0.0-beta.0-sources.jar.sha1 → 55.0.0-beta.2/expo.modules.router-55.0.0-beta.2-sources.jar.sha1} +0 -0
- /package/local-maven-repo/expo/modules/router/expo.modules.router/{55.0.0-beta.0/expo.modules.router-55.0.0-beta.0-sources.jar.sha256 → 55.0.0-beta.2/expo.modules.router-55.0.0-beta.2-sources.jar.sha256} +0 -0
- /package/local-maven-repo/expo/modules/router/expo.modules.router/{55.0.0-beta.0/expo.modules.router-55.0.0-beta.0-sources.jar.sha512 → 55.0.0-beta.2/expo.modules.router-55.0.0-beta.2-sources.jar.sha512} +0 -0
- /package/local-maven-repo/expo/modules/router/expo.modules.router/{55.0.0-beta.0/expo.modules.router-55.0.0-beta.0.aar → 55.0.0-beta.2/expo.modules.router-55.0.0-beta.2.aar} +0 -0
- /package/local-maven-repo/expo/modules/router/expo.modules.router/{55.0.0-beta.0/expo.modules.router-55.0.0-beta.0.aar.md5 → 55.0.0-beta.2/expo.modules.router-55.0.0-beta.2.aar.md5} +0 -0
- /package/local-maven-repo/expo/modules/router/expo.modules.router/{55.0.0-beta.0/expo.modules.router-55.0.0-beta.0.aar.sha1 → 55.0.0-beta.2/expo.modules.router-55.0.0-beta.2.aar.sha1} +0 -0
- /package/local-maven-repo/expo/modules/router/expo.modules.router/{55.0.0-beta.0/expo.modules.router-55.0.0-beta.0.aar.sha256 → 55.0.0-beta.2/expo.modules.router-55.0.0-beta.2.aar.sha256} +0 -0
- /package/local-maven-repo/expo/modules/router/expo.modules.router/{55.0.0-beta.0/expo.modules.router-55.0.0-beta.0.aar.sha512 → 55.0.0-beta.2/expo.modules.router-55.0.0-beta.2.aar.sha512} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeTabTrigger.js","sourceRoot":"","sources":["../../src/native-tabs/NativeTabTrigger.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;AA+Fb,4DAgDC;AAyBD,8CA8CC;AAsCD,gDAgCC;AA1RD,qDAAmE;AACnE,iCAAuF;AACvF,+CAAoE;AAEpE,gDAS2B;AAE3B,6EAAmE;AACnE,sDAAmD;AACnD,gDAAiF;AACjF,uCAAgE;AAChE,yEAAqF;AAErF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,SAAS,oBAAoB,CAAC,KAA4B;IACxD,MAAM,KAAK,GAAG,IAAA,iBAAQ,GAAE,CAAC;IACzB,MAAM,UAAU,GAAG,IAAA,sBAAa,GAAE,CAAC;IACnC,MAAM,WAAW,GAAG,IAAA,kCAAY,GAAE,CAAC;IAEnC,IAAA,+BAAc,EACZ,IAAA,mBAAW,EAAC,GAAG,EAAE;QACf,6DAA6D;QAC7D,yEAAyE;QACzE,iDAAiD;QACjD,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,IAAI,UAAU,CAAC,QAAQ,EAAE,EAAE,IAAI,KAAK,KAAK,EAAE,CAAC;gBAC1C,MAAM,IAAI,KAAK,CACb,wEAAwE,KAAK,CAAC,IAAI,EAAE,CAC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,CACb,uDAAuD,UAAU,0GAA0G,CAC5K,CAAC;YACJ,CAAC;QACH,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC","sourcesContent":["'use client';\n\nimport { useNavigation, useRoute } from '@react-navigation/native';\nimport { isValidElement, useCallback, type ReactElement, type ReactNode } from 'react';\nimport { StyleSheet, type ImageSourcePropType } from 'react-native';\n\nimport {\n NativeTabsTriggerIcon,\n NativeTabsTriggerBadge,\n NativeTabsTriggerLabel,\n NativeTabsTriggerVectorIcon,\n type NativeTabsTriggerBadgeProps,\n type NativeTabsTriggerLabelProps,\n type NativeTabsTriggerIconProps,\n type SrcIcon,\n} from './common/elements';\nimport type { NativeTabOptions, NativeTabTriggerProps } from './types';\nimport { useIsPreview } from '../link/preview/PreviewRouteContext';\nimport { useFocusEffect } from '../useFocusEffect';\nimport { filterAllowedChildrenElements, isChildOfType } from '../utils/children';\nimport { convertComponentSrcToImageSource } from './utils/icon';\nimport { convertMaterialIconNameToImageSource } from './utils/materialIconConverter';\n\n/**\n * The component used to customize the native tab options both in the _layout file and from the tab screen.\n *\n * When used in the _layout file, you need to provide a `name` prop.\n * When used in the tab screen, the `name` prop takes no effect.\n *\n * @example\n * ```tsx\n * // In _layout file\n * import { NativeTabs } from 'expo-router/unstable-native-tabs';\n *\n * export default function Layout() {\n * return (\n * <NativeTabs>\n * <NativeTabs.Trigger name=\"home\" />\n * <NativeTabs.Trigger name=\"settings\" />\n * </NativeTabs>\n * );\n * }\n * ```\n *\n * @example\n * ```tsx\n * // In a tab screen\n * import { NativeTabs } from 'expo-router/unstable-native-tabs';\n *\n * export default function HomeScreen() {\n * return (\n * <View>\n * <NativeTabs.Trigger>\n * <NativeTabs.Trigger.Label>Home</NativeTabs.Trigger.Label>\n * </NativeTabs.Trigger>\n * <Text>This is home screen!</Text>\n * </View>\n * );\n * }\n * ```\n *\n * > **Note:** You can use the alias `NativeTabs.Trigger` for this component.\n */\nfunction NativeTabTriggerImpl(props: NativeTabTriggerProps) {\n const route = useRoute();\n const navigation = useNavigation();\n const isInPreview = useIsPreview();\n\n useFocusEffect(\n useCallback(() => {\n // This will cause the tab to update only when it is focused.\n // As long as all tabs are loaded at the start, we don't need this check.\n // It is here to ensure similar behavior to stack\n if (!isInPreview) {\n if (navigation.getState()?.type !== 'tab') {\n throw new Error(\n `Trigger component can only be used in the tab screen. Current route: ${route.name}`\n );\n }\n const options = convertTabPropsToOptions(props, true);\n navigation.setOptions(options);\n }\n }, [props, isInPreview])\n );\n\n return null;\n}\n\nexport const NativeTabTrigger = Object.assign(NativeTabTriggerImpl, {\n Label: NativeTabsTriggerLabel,\n Icon: NativeTabsTriggerIcon,\n Badge: NativeTabsTriggerBadge,\n VectorIcon: NativeTabsTriggerVectorIcon,\n});\n\nexport function convertTabPropsToOptions(\n {\n hidden,\n children,\n role,\n disablePopToTop,\n disableScrollToTop,\n unstable_nativeProps,\n disableAutomaticContentInsets,\n contentStyle,\n }: NativeTabTriggerProps,\n isDynamic: boolean = false\n) {\n const initialOptions: NativeTabOptions = isDynamic\n ? {\n ...(unstable_nativeProps ? { nativeProps: unstable_nativeProps } : {}),\n }\n : {\n hidden: !!hidden,\n specialEffects: {\n repeatedTabSelection: {\n popToRoot: !disablePopToTop,\n scrollToTop: !disableScrollToTop,\n },\n },\n contentStyle,\n role,\n nativeProps: unstable_nativeProps,\n disableAutomaticContentInsets,\n };\n const allowedChildren = filterAllowedChildrenElements(children, [\n NativeTabsTriggerBadge,\n NativeTabsTriggerLabel,\n NativeTabsTriggerIcon,\n ]);\n return allowedChildren.reduce<NativeTabOptions>(\n (acc, child) => {\n if (isChildOfType(child, NativeTabsTriggerBadge)) {\n appendBadgeOptions(acc, child.props);\n } else if (isChildOfType(child, NativeTabsTriggerLabel)) {\n appendLabelOptions(acc, child.props);\n } else if (isChildOfType(child, NativeTabsTriggerIcon)) {\n appendIconOptions(acc, child.props);\n }\n return acc;\n },\n { ...initialOptions }\n );\n}\n\nfunction appendBadgeOptions(options: NativeTabOptions, props: NativeTabsTriggerBadgeProps) {\n if (props.children) {\n options.badgeValue = String(props.children);\n options.selectedBadgeBackgroundColor = props.selectedBackgroundColor;\n } else if (!props.hidden) {\n // If no value is provided, we set it to a space to show the badge\n // Otherwise, the `react-native-screens` will interpret it as a hidden badge\n // https://github.com/software-mansion/react-native-screens/blob/b4358fd95dd0736fc54df6bb97f210dc89edf24c/ios/bottom-tabs/RNSBottomTabsScreenComponentView.mm#L172\n options.badgeValue = ' ';\n }\n}\n\nfunction appendLabelOptions(options: NativeTabOptions, props: NativeTabsTriggerLabelProps) {\n if (props.hidden) {\n options.title = '';\n } else {\n options.title = props.children;\n if (props.selectedStyle) {\n options.selectedLabelStyle = StyleSheet.flatten(props.selectedStyle);\n }\n }\n}\n\nexport function appendIconOptions(options: NativeTabOptions, props: NativeTabsTriggerIconProps) {\n if ('sf' in props && props.sf && process.env.EXPO_OS === 'ios') {\n if (typeof props.sf === 'string') {\n options.icon = props.sf\n ? {\n sf: props.sf,\n }\n : undefined;\n options.selectedIcon = undefined;\n } else if (props.sf) {\n options.icon = props.sf.default\n ? {\n sf: props.sf.default,\n }\n : undefined;\n options.selectedIcon = props.sf.selected\n ? {\n sf: props.sf.selected,\n }\n : undefined;\n }\n } else if ('drawable' in props && props.drawable && process.env.EXPO_OS === 'android') {\n if ('md' in props) {\n console.warn(\n 'Both `md` and `drawable` props are provided to NativeTabs.Trigger.Icon. `drawable` will take precedence on Android platform.'\n );\n }\n options.icon = { drawable: props.drawable };\n options.selectedIcon = undefined;\n } else if ('md' in props && props.md && process.env.EXPO_OS === 'android') {\n if (process.env.NODE_ENV !== 'production') {\n if ('drawable' in props) {\n console.warn(\n 'Both `md` and `drawable` props are provided to NativeTabs.Trigger.Icon. `drawable` will take precedence on Android platform.'\n );\n }\n }\n options.icon = convertMaterialIconNameToImageSource(props.md);\n } else if ('src' in props && props.src) {\n const icon = convertIconSrcToIconOption(props);\n options.icon = icon?.icon;\n options.selectedIcon = icon?.selectedIcon;\n }\n if (props.selectedColor) {\n options.selectedIconColor = props.selectedColor;\n }\n}\n\nfunction convertIconSrcToIconOption(\n icon: SrcIcon | undefined\n): Pick<NativeTabOptions, 'icon' | 'selectedIcon'> | undefined {\n if (icon && icon.src) {\n const { defaultIcon, selected } =\n typeof icon.src === 'object' && 'selected' in icon.src\n ? { defaultIcon: icon.src.default, selected: icon.src.selected }\n : { defaultIcon: icon.src };\n\n const options: Pick<NativeTabOptions, 'icon' | 'selectedIcon'> = {};\n options.icon = convertSrcOrComponentToSrc(defaultIcon, { renderingMode: icon.renderingMode });\n options.selectedIcon = convertSrcOrComponentToSrc(selected, {\n renderingMode: icon.renderingMode,\n });\n return options;\n }\n\n return undefined;\n}\n\nfunction convertSrcOrComponentToSrc(\n src: ImageSourcePropType | ReactElement | undefined,\n options: {\n renderingMode: 'template' | 'original' | undefined;\n }\n) {\n if (src) {\n if (isValidElement(src)) {\n return convertComponentSrcToImageSource(src);\n } else {\n return { src, renderingMode: options.renderingMode };\n }\n }\n return undefined;\n}\n\nexport function isNativeTabTrigger(\n child: ReactNode,\n contextKey?: string\n): child is ReactElement<NativeTabTriggerProps & { name: string }> {\n if (isValidElement(child) && child && child.type === NativeTabTrigger) {\n if (\n typeof child.props === 'object' &&\n child.props &&\n 'name' in child.props &&\n !child.props.name\n ) {\n throw new Error(\n `<Trigger /> component in \\`default export\\` at \\`app${contextKey}/_layout\\` must have a \\`name\\` prop when used as a child of a Layout Route.`\n );\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (\n ['component', 'getComponent'].some(\n (key) => child.props && typeof child.props === 'object' && key in child.props\n )\n ) {\n throw new Error(\n `<Trigger /> component in \\`default export\\` at \\`app${contextKey}/_layout\\` must not have a \\`component\\` or \\`getComponent\\` prop when used as a child of a Layout Route`\n );\n }\n }\n\n return true;\n }\n\n return false;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"NativeTabTrigger.js","sourceRoot":"","sources":["../../src/native-tabs/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;QACvD,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,SAAgB,kBAAkB,CAChC,KAAgB,EAChB,UAAmB;IAEnB,IAAI,IAAA,sBAAc,EAAC,KAAK,CAAC,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,wBAAgB,EAAE,CAAC;QACtE,IACE,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ;YAC/B,KAAK,CAAC,KAAK;YACX,MAAM,IAAI,KAAK,CAAC,KAAK;YACrB,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EACjB,CAAC;YACD,MAAM,IAAI,KAAK,CACb,uDAAuD,UAAU,8EAA8E,CAChJ,CAAC;QACJ,CAAC;QAED,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE,CAAC;YAC1C,IACE,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC,IAAI,CAChC,CAAC,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,IAAI,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ,IAAI,GAAG,IAAI,KAAK,CAAC,KAAK,CAC9E,EACD,CAAC;gBACD,MAAM,IAAI,KAAK,CACb,uDAAuD,UAAU,0GAA0G,CAC5K,CAAC;YACJ,CAAC;QACH,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC","sourcesContent":["'use client';\n\nimport { useNavigation, useRoute } from '@react-navigation/native';\nimport { isValidElement, useCallback, type ReactElement, type ReactNode } from 'react';\nimport { StyleSheet, type ImageSourcePropType } from 'react-native';\n\nimport {\n NativeTabsTriggerIcon,\n NativeTabsTriggerBadge,\n NativeTabsTriggerLabel,\n NativeTabsTriggerVectorIcon,\n type NativeTabsTriggerBadgeProps,\n type NativeTabsTriggerLabelProps,\n type NativeTabsTriggerIconProps,\n type SrcIcon,\n} from './common/elements';\nimport type { NativeTabOptions, NativeTabTriggerProps } from './types';\nimport { useIsPreview } from '../link/preview/PreviewRouteContext';\nimport { useFocusEffect } from '../useFocusEffect';\nimport { filterAllowedChildrenElements, isChildOfType } from '../utils/children';\nimport { convertComponentSrcToImageSource } from './utils/icon';\nimport { convertMaterialIconNameToImageSource } from './utils/materialIconConverter';\n\n/**\n * The component used to customize the native tab options both in the _layout file and from the tab screen.\n *\n * When used in the _layout file, you need to provide a `name` prop.\n * When used in the tab screen, the `name` prop takes no effect.\n *\n * @example\n * ```tsx app/_layout.tsx\n * import { NativeTabs } from 'expo-router/unstable-native-tabs';\n *\n * export default function Layout() {\n * return (\n * <NativeTabs>\n * <NativeTabs.Trigger name=\"home\" />\n * <NativeTabs.Trigger name=\"settings\" />\n * </NativeTabs>\n * );\n * }\n * ```\n *\n * @example\n * ```tsx app/home.tsx\n * import { NativeTabs } from 'expo-router/unstable-native-tabs';\n *\n * export default function HomeScreen() {\n * return (\n * <View>\n * <NativeTabs.Trigger>\n * <NativeTabs.Trigger.Label>Home</NativeTabs.Trigger.Label>\n * </NativeTabs.Trigger>\n * <Text>This is home screen!</Text>\n * </View>\n * );\n * }\n * ```\n */\nfunction NativeTabTriggerImpl(props: NativeTabTriggerProps) {\n const route = useRoute();\n const navigation = useNavigation();\n const isInPreview = useIsPreview();\n\n useFocusEffect(\n useCallback(() => {\n // This will cause the tab to update only when it is focused.\n // As long as all tabs are loaded at the start, we don't need this check.\n // It is here to ensure similar behavior to stack\n if (!isInPreview) {\n if (navigation.getState()?.type !== 'tab') {\n throw new Error(\n `Trigger component can only be used in the tab screen. Current route: ${route.name}`\n );\n }\n const options = convertTabPropsToOptions(props, true);\n navigation.setOptions(options);\n }\n }, [props, isInPreview])\n );\n\n return null;\n}\n\nexport const NativeTabTrigger = Object.assign(NativeTabTriggerImpl, {\n Label: NativeTabsTriggerLabel,\n Icon: NativeTabsTriggerIcon,\n Badge: NativeTabsTriggerBadge,\n VectorIcon: NativeTabsTriggerVectorIcon,\n});\n\nexport function convertTabPropsToOptions(\n {\n hidden,\n children,\n role,\n disablePopToTop,\n disableScrollToTop,\n unstable_nativeProps,\n disableAutomaticContentInsets,\n contentStyle,\n }: NativeTabTriggerProps,\n isDynamic: boolean = false\n) {\n const initialOptions: NativeTabOptions = isDynamic\n ? {\n ...(unstable_nativeProps ? { nativeProps: unstable_nativeProps } : {}),\n }\n : {\n hidden: !!hidden,\n specialEffects: {\n repeatedTabSelection: {\n popToRoot: !disablePopToTop,\n scrollToTop: !disableScrollToTop,\n },\n },\n contentStyle,\n role,\n nativeProps: unstable_nativeProps,\n disableAutomaticContentInsets,\n };\n const allowedChildren = filterAllowedChildrenElements(children, [\n NativeTabsTriggerBadge,\n NativeTabsTriggerLabel,\n NativeTabsTriggerIcon,\n ]);\n return allowedChildren.reduce<NativeTabOptions>(\n (acc, child) => {\n if (isChildOfType(child, NativeTabsTriggerBadge)) {\n appendBadgeOptions(acc, child.props);\n } else if (isChildOfType(child, NativeTabsTriggerLabel)) {\n appendLabelOptions(acc, child.props);\n } else if (isChildOfType(child, NativeTabsTriggerIcon)) {\n appendIconOptions(acc, child.props);\n }\n return acc;\n },\n { ...initialOptions }\n );\n}\n\nfunction appendBadgeOptions(options: NativeTabOptions, props: NativeTabsTriggerBadgeProps) {\n if (props.children) {\n options.badgeValue = String(props.children);\n options.selectedBadgeBackgroundColor = props.selectedBackgroundColor;\n } else if (!props.hidden) {\n // If no value is provided, we set it to a space to show the badge\n // Otherwise, the `react-native-screens` will interpret it as a hidden badge\n // https://github.com/software-mansion/react-native-screens/blob/b4358fd95dd0736fc54df6bb97f210dc89edf24c/ios/bottom-tabs/RNSBottomTabsScreenComponentView.mm#L172\n options.badgeValue = ' ';\n }\n}\n\nfunction appendLabelOptions(options: NativeTabOptions, props: NativeTabsTriggerLabelProps) {\n if (props.hidden) {\n options.title = '';\n } else {\n options.title = props.children;\n if (props.selectedStyle) {\n options.selectedLabelStyle = StyleSheet.flatten(props.selectedStyle);\n }\n }\n}\n\nexport function appendIconOptions(options: NativeTabOptions, props: NativeTabsTriggerIconProps) {\n if ('sf' in props && props.sf && process.env.EXPO_OS === 'ios') {\n if (typeof props.sf === 'string') {\n options.icon = props.sf\n ? {\n sf: props.sf,\n }\n : undefined;\n options.selectedIcon = undefined;\n } else if (props.sf) {\n options.icon = props.sf.default\n ? {\n sf: props.sf.default,\n }\n : undefined;\n options.selectedIcon = props.sf.selected\n ? {\n sf: props.sf.selected,\n }\n : undefined;\n }\n } else if ('drawable' in props && props.drawable && process.env.EXPO_OS === 'android') {\n if ('md' in props) {\n console.warn(\n 'Both `md` and `drawable` props are provided to NativeTabs.Trigger.Icon. `drawable` will take precedence on Android platform.'\n );\n }\n options.icon = { drawable: props.drawable };\n options.selectedIcon = undefined;\n } else if ('md' in props && props.md && process.env.EXPO_OS === 'android') {\n if (process.env.NODE_ENV !== 'production') {\n if ('drawable' in props) {\n console.warn(\n 'Both `md` and `drawable` props are provided to NativeTabs.Trigger.Icon. `drawable` will take precedence on Android platform.'\n );\n }\n }\n options.icon = convertMaterialIconNameToImageSource(props.md);\n } else if ('src' in props && props.src) {\n const icon = convertIconSrcToIconOption(props);\n options.icon = icon?.icon;\n options.selectedIcon = icon?.selectedIcon;\n }\n if (props.selectedColor) {\n options.selectedIconColor = props.selectedColor;\n }\n}\n\nfunction convertIconSrcToIconOption(\n icon: SrcIcon | undefined\n): Pick<NativeTabOptions, 'icon' | 'selectedIcon'> | undefined {\n if (icon && icon.src) {\n const { defaultIcon, selected } =\n typeof icon.src === 'object' && 'selected' in icon.src\n ? { defaultIcon: icon.src.default, selected: icon.src.selected }\n : { defaultIcon: icon.src };\n\n const options: Pick<NativeTabOptions, 'icon' | 'selectedIcon'> = {};\n options.icon = convertSrcOrComponentToSrc(defaultIcon, { renderingMode: icon.renderingMode });\n options.selectedIcon = convertSrcOrComponentToSrc(selected, {\n renderingMode: icon.renderingMode,\n });\n return options;\n }\n\n return undefined;\n}\n\nfunction convertSrcOrComponentToSrc(\n src: ImageSourcePropType | ReactElement | undefined,\n options: {\n renderingMode: 'template' | 'original' | undefined;\n }\n) {\n if (src) {\n if (isValidElement(src)) {\n return convertComponentSrcToImageSource(src);\n } else {\n return { src, renderingMode: options.renderingMode };\n }\n }\n return undefined;\n}\n\nexport function isNativeTabTrigger(\n child: ReactNode,\n contextKey?: string\n): child is ReactElement<NativeTabTriggerProps & { name: string }> {\n if (isValidElement(child) && child && child.type === NativeTabTrigger) {\n if (\n typeof child.props === 'object' &&\n child.props &&\n 'name' in child.props &&\n !child.props.name\n ) {\n throw new Error(\n `<Trigger /> component in \\`default export\\` at \\`app${contextKey}/_layout\\` must have a \\`name\\` prop when used as a child of a Layout Route.`\n );\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (\n ['component', 'getComponent'].some(\n (key) => child.props && typeof child.props === 'object' && key in child.props\n )\n ) {\n throw new Error(\n `<Trigger /> component in \\`default export\\` at \\`app${contextKey}/_layout\\` must not have a \\`component\\` or \\`getComponent\\` prop when used as a child of a Layout Route`\n );\n }\n }\n\n return true;\n }\n\n return false;\n}\n"]}
|
|
@@ -3,8 +3,7 @@ import type { NativeTabsProps } from './types';
|
|
|
3
3
|
* The component used to create native tabs layout.
|
|
4
4
|
*
|
|
5
5
|
* @example
|
|
6
|
-
* ```tsx
|
|
7
|
-
* // In _layout file
|
|
6
|
+
* ```tsx app/_layout.tsx
|
|
8
7
|
* import { NativeTabs } from 'expo-router/unstable-native-tabs';
|
|
9
8
|
*
|
|
10
9
|
* export default function Layout() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeTabs.d.ts","sourceRoot":"","sources":["../../src/native-tabs/NativeTabs.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAM/C
|
|
1
|
+
{"version":3,"file":"NativeTabs.d.ts","sourceRoot":"","sources":["../../src/native-tabs/NativeTabs.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAM/C;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,UAAU,WACb,eAAe;;;;;;;;;;CAIxB,CAAC"}
|
|
@@ -14,8 +14,7 @@ const BottomAccessory = Object.assign(elements_1.NativeTabsBottomAccessory, {
|
|
|
14
14
|
* The component used to create native tabs layout.
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
|
-
* ```tsx
|
|
18
|
-
* // In _layout file
|
|
17
|
+
* ```tsx app/_layout.tsx
|
|
19
18
|
* import { NativeTabs } from 'expo-router/unstable-native-tabs';
|
|
20
19
|
*
|
|
21
20
|
* export default function Layout() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeTabs.js","sourceRoot":"","sources":["../../src/native-tabs/NativeTabs.tsx"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,2BAA2B;AAC3B,2EAAyE;AACzE,yDAAsD;AACtD,gDAA8D;AAC9D,mCAAuC;AAGvC,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,oCAAyB,EAAE;IAC/D,YAAY,EAAZ,oBAAY;CACb,CAAC,CAAC;AAEH
|
|
1
|
+
{"version":3,"file":"NativeTabs.js","sourceRoot":"","sources":["../../src/native-tabs/NativeTabs.tsx"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,2BAA2B;AAC3B,2EAAyE;AACzE,yDAAsD;AACtD,gDAA8D;AAC9D,mCAAuC;AAGvC,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,oCAAyB,EAAE;IAC/D,YAAY,EAAZ,oBAAY;CACb,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;GAgBG;AACU,QAAA,UAAU,GAAG,MAAM,CAAC,MAAM,CACrC,CAAC,KAAsB,EAAE,EAAE;IACzB,OAAO,CAAC,sDAA0B,CAAC,IAAI,KAAK,CAAC,EAAG,CAAC;AACnD,CAAC,EACD,EAAE,OAAO,EAAE,mCAAgB,EAAE,eAAe,EAAE,CAC/C,CAAC","sourcesContent":["// We need this file to re-export the navigator\n// Otherwise rsc would fail\nimport { NativeTabsNavigatorWrapper } from './NativeBottomTabsNavigator';\nimport { NativeTabTrigger } from './NativeTabTrigger';\nimport { NativeTabsBottomAccessory } from './common/elements';\nimport { usePlacement } from './hooks';\nimport type { NativeTabsProps } from './types';\n\nconst BottomAccessory = Object.assign(NativeTabsBottomAccessory, {\n usePlacement,\n});\n\n/**\n * The component used to create native tabs layout.\n *\n * @example\n * ```tsx app/_layout.tsx\n * import { NativeTabs } from 'expo-router/unstable-native-tabs';\n *\n * export default function Layout() {\n * return (\n * <NativeTabs>\n * <NativeTabs.Trigger name=\"home\" />\n * <NativeTabs.Trigger name=\"settings\" />\n * </NativeTabs>\n * );\n * }\n * ```\n */\nexport const NativeTabs = Object.assign(\n (props: NativeTabsProps) => {\n return <NativeTabsNavigatorWrapper {...props} />;\n },\n { Trigger: NativeTabTrigger, BottomAccessory }\n);\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type { NativeTabsTriggerLabelProps, SrcIcon, SFSymbolIcon, DrawableIcon, MaterialIcon, BaseNativeTabsTriggerIconProps, NativeTabsTriggerIconProps, NativeTabsTriggerBadgeProps, NativeTabsBottomAccessoryProps, } from './common/elements';
|
|
2
2
|
export type { NativeTabsProps, NativeTabTriggerProps, NativeTabsLabelStyle, SymbolOrImageSource, NativeTabsTabBarItemLabelVisibilityMode, NativeTabsBlurEffect, NativeTabsTabBarMinimizeBehavior, NativeTabsTabBarItemRole, } from './types';
|
|
3
3
|
export { NativeTabTrigger } from './NativeTabTrigger';
|
|
4
4
|
export { NativeTabs } from './NativeTabs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/native-tabs/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/native-tabs/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,2BAA2B,EAC3B,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,8BAA8B,EAC9B,0BAA0B,EAC1B,2BAA2B,EAC3B,8BAA8B,GAC/B,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,eAAe,EACf,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,EACnB,uCAAuC,EACvC,oBAAoB,EACpB,gCAAgC,EAChC,wBAAwB,GACzB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1,21 +1,6 @@
|
|
|
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
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
3
|
exports.NativeTabs = exports.NativeTabTrigger = void 0;
|
|
18
|
-
__exportStar(require("./common/elements"), exports);
|
|
19
4
|
var NativeTabTrigger_1 = require("./NativeTabTrigger");
|
|
20
5
|
Object.defineProperty(exports, "NativeTabTrigger", { enumerable: true, get: function () { return NativeTabTrigger_1.NativeTabTrigger; } });
|
|
21
6
|
var NativeTabs_1 = require("./NativeTabs");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/native-tabs/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/native-tabs/index.ts"],"names":[],"mappings":";;;AAqBA,uDAAsD;AAA7C,oHAAA,gBAAgB,OAAA;AACzB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA","sourcesContent":["export type {\n NativeTabsTriggerLabelProps,\n SrcIcon,\n SFSymbolIcon,\n DrawableIcon,\n MaterialIcon,\n BaseNativeTabsTriggerIconProps,\n NativeTabsTriggerIconProps,\n NativeTabsTriggerBadgeProps,\n NativeTabsBottomAccessoryProps,\n} from './common/elements';\nexport type {\n NativeTabsProps,\n NativeTabTriggerProps,\n NativeTabsLabelStyle,\n SymbolOrImageSource,\n NativeTabsTabBarItemLabelVisibilityMode,\n NativeTabsBlurEffect,\n NativeTabsTabBarMinimizeBehavior,\n NativeTabsTabBarItemRole,\n} from './types';\nexport { NativeTabTrigger } from './NativeTabTrigger';\nexport { NativeTabs } from './NativeTabs';\n"]}
|
|
@@ -2,7 +2,10 @@ import type { BadgeProps, IconProps, LabelProps, VectorIconProps } from './types
|
|
|
2
2
|
export declare function Badge(props: BadgeProps): null;
|
|
3
3
|
export declare function Icon(props: IconProps): null;
|
|
4
4
|
/**
|
|
5
|
-
* Helper component
|
|
5
|
+
* Helper component for loading vector icons.
|
|
6
|
+
*
|
|
7
|
+
* Prefer using the `md` and `sf` props on `Icon` rather than using this component directly.
|
|
8
|
+
* Only use this component when you need to load a specific icon from a vector icon family.
|
|
6
9
|
*
|
|
7
10
|
* @example
|
|
8
11
|
* ```tsx
|
|
@@ -10,7 +13,6 @@ export declare function Icon(props: IconProps): null;
|
|
|
10
13
|
* import MaterialCommunityIcons from '@expo/vector-icons/MaterialCommunityIcons';
|
|
11
14
|
*
|
|
12
15
|
* <Icon src={<VectorIcon family={MaterialCommunityIcons} name="home" />} />
|
|
13
|
-
*
|
|
14
16
|
* ```
|
|
15
17
|
*/
|
|
16
18
|
export declare function VectorIcon<const NameT extends string>(props: VectorIconProps<NameT>): null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elements.d.ts","sourceRoot":"","sources":["../../src/primitives/elements.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAElF,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,QAEtC;AAED,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,QAEpC;AAED
|
|
1
|
+
{"version":3,"file":"elements.d.ts","sourceRoot":"","sources":["../../src/primitives/elements.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAElF,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,QAEtC;AAED,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,QAEpC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,UAAU,CAAC,KAAK,CAAC,KAAK,SAAS,MAAM,EAAE,KAAK,EAAE,eAAe,CAAC,KAAK,CAAC,QAEnF;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,QAEtC"}
|
|
@@ -11,7 +11,10 @@ function Icon(props) {
|
|
|
11
11
|
return null;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
* Helper component
|
|
14
|
+
* Helper component for loading vector icons.
|
|
15
|
+
*
|
|
16
|
+
* Prefer using the `md` and `sf` props on `Icon` rather than using this component directly.
|
|
17
|
+
* Only use this component when you need to load a specific icon from a vector icon family.
|
|
15
18
|
*
|
|
16
19
|
* @example
|
|
17
20
|
* ```tsx
|
|
@@ -19,7 +22,6 @@ function Icon(props) {
|
|
|
19
22
|
* import MaterialCommunityIcons from '@expo/vector-icons/MaterialCommunityIcons';
|
|
20
23
|
*
|
|
21
24
|
* <Icon src={<VectorIcon family={MaterialCommunityIcons} name="home" />} />
|
|
22
|
-
*
|
|
23
25
|
* ```
|
|
24
26
|
*/
|
|
25
27
|
function VectorIcon(props) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elements.js","sourceRoot":"","sources":["../../src/primitives/elements.tsx"],"names":[],"mappings":";;AAEA,sBAEC;AAED,oBAEC;
|
|
1
|
+
{"version":3,"file":"elements.js","sourceRoot":"","sources":["../../src/primitives/elements.tsx"],"names":[],"mappings":";;AAEA,sBAEC;AAED,oBAEC;AAgBD,gCAEC;AAED,sBAEC;AA5BD,SAAgB,KAAK,CAAC,KAAiB;IACrC,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAgB,IAAI,CAAC,KAAgB;IACnC,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,SAAgB,UAAU,CAA6B,KAA6B;IAClF,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAgB,KAAK,CAAC,KAAiB;IACrC,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["import type { BadgeProps, IconProps, LabelProps, VectorIconProps } from './types';\n\nexport function Badge(props: BadgeProps) {\n return null;\n}\n\nexport function Icon(props: IconProps) {\n return null;\n}\n\n/**\n * Helper component for loading vector icons.\n *\n * Prefer using the `md` and `sf` props on `Icon` rather than using this component directly.\n * Only use this component when you need to load a specific icon from a vector icon family.\n *\n * @example\n * ```tsx\n * import { Icon, VectorIcon } from 'expo-router';\n * import MaterialCommunityIcons from '@expo/vector-icons/MaterialCommunityIcons';\n *\n * <Icon src={<VectorIcon family={MaterialCommunityIcons} name=\"home\" />} />\n * ```\n */\nexport function VectorIcon<const NameT extends string>(props: VectorIconProps<NameT>) {\n return null;\n}\n\nexport function Label(props: LabelProps) {\n return null;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/primitives/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC7C,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/primitives/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC7C,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC"}
|
|
@@ -14,13 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
17
|
+
exports.Group = exports.Screen = void 0;
|
|
18
18
|
var navigation_1 = require("./navigation");
|
|
19
19
|
Object.defineProperty(exports, "Screen", { enumerable: true, get: function () { return navigation_1.Screen; } });
|
|
20
20
|
Object.defineProperty(exports, "Group", { enumerable: true, get: function () { return navigation_1.Group; } });
|
|
21
21
|
__exportStar(require("./types"), exports);
|
|
22
22
|
__exportStar(require("./elements"), exports);
|
|
23
|
-
var menu_1 = require("./menu");
|
|
24
|
-
Object.defineProperty(exports, "Menu", { enumerable: true, get: function () { return menu_1.Menu; } });
|
|
25
|
-
Object.defineProperty(exports, "MenuAction", { enumerable: true, get: function () { return menu_1.MenuAction; } });
|
|
26
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/primitives/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAA6C;AAApC,oGAAA,MAAM,OAAA;AAAE,mGAAA,KAAK,OAAA;AACtB,0CAAwB;AACxB,6CAA2B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/primitives/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAA6C;AAApC,oGAAA,MAAM,OAAA;AAAE,mGAAA,KAAK,OAAA;AACtB,0CAAwB;AACxB,6CAA2B","sourcesContent":["export { Screen, Group } from './navigation';\nexport * from './types';\nexport * from './elements';\n"]}
|
|
@@ -3,8 +3,6 @@ import type { MenuActionProps, MenuProps } from './types';
|
|
|
3
3
|
* This component renders a context menu action for a link.
|
|
4
4
|
* It should only be used as a child of `Link.Menu` or `LinkMenu`.
|
|
5
5
|
*
|
|
6
|
-
* > **Note**: You can use the alias `Link.MenuAction` for this component.
|
|
7
|
-
*
|
|
8
6
|
* @platform ios
|
|
9
7
|
*/
|
|
10
8
|
export declare function MenuAction(props: MenuActionProps): null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../src/primitives/menu.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAG1D
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../src/primitives/menu.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAG1D;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,QAOhD;AAED,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,QAKpC"}
|
package/build/primitives/menu.js
CHANGED
|
@@ -9,8 +9,6 @@ const InternalLinkPreviewContext_1 = require("../link/InternalLinkPreviewContext
|
|
|
9
9
|
* This component renders a context menu action for a link.
|
|
10
10
|
* It should only be used as a child of `Link.Menu` or `LinkMenu`.
|
|
11
11
|
*
|
|
12
|
-
* > **Note**: You can use the alias `Link.MenuAction` for this component.
|
|
13
|
-
*
|
|
14
12
|
* @platform ios
|
|
15
13
|
*/
|
|
16
14
|
function MenuAction(props) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.js","sourceRoot":"","sources":["../../src/primitives/menu.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;
|
|
1
|
+
{"version":3,"file":"menu.js","sourceRoot":"","sources":["../../src/primitives/menu.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;AAab,gCAOC;AAED,oBAKC;AAzBD,iCAA4B;AAG5B,mFAAgF;AAEhF;;;;;GAKG;AACH,SAAgB,UAAU,CAAC,KAAsB;IAC/C,IAAI,IAAA,WAAG,EAAC,uDAA0B,CAAC,EAAE,CAAC;QACpC,OAAO,CAAC,IAAI,CACV,mFAAmF,CACpF,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAgB,IAAI,CAAC,KAAgB;IACnC,IAAI,IAAA,WAAG,EAAC,uDAA0B,CAAC,EAAE,CAAC;QACpC,OAAO,CAAC,IAAI,CAAC,qEAAqE,CAAC,CAAC;IACtF,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["'use client';\n\nimport { use } from 'react';\n\nimport type { MenuActionProps, MenuProps } from './types';\nimport { InternalLinkPreviewContext } from '../link/InternalLinkPreviewContext';\n\n/**\n * This component renders a context menu action for a link.\n * It should only be used as a child of `Link.Menu` or `LinkMenu`.\n *\n * @platform ios\n */\nexport function MenuAction(props: MenuActionProps) {\n if (use(InternalLinkPreviewContext)) {\n console.warn(\n '<MenuAction> is currently not supported inside Link. Use Link.MenuAction instead.'\n );\n }\n return null;\n}\n\nexport function Menu(props: MenuProps) {\n if (use(InternalLinkPreviewContext)) {\n console.warn('Menu is currently not supported inside Link. Use Link.Menu instead.');\n }\n return null;\n}\n"]}
|
|
@@ -12,6 +12,8 @@ export interface VectorIconProps<NameT extends string> {
|
|
|
12
12
|
* ```tsx
|
|
13
13
|
* import MaterialCommunityIcons from '@expo/vector-icons/MaterialCommunityIcons';
|
|
14
14
|
* ```
|
|
15
|
+
*
|
|
16
|
+
* @hideType
|
|
15
17
|
*/
|
|
16
18
|
family: {
|
|
17
19
|
getImageSource: (name: NameT, size: number, color: ColorValue) => Promise<ImageSourcePropType | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/primitives/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEpE,OAAO,KAAK,EACV,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,KAAK,EACV,2BAA2B,EAC3B,0BAA0B,EAC1B,2BAA2B,EAC5B,MAAM,gBAAgB,CAAC;AAExB,MAAM,MAAM,UAAU,GAAG,2BAA2B,GAAG,sBAAsB,CAAC;AAE9E,MAAM,MAAM,SAAS,GAAG,0BAA0B,GAAG,qBAAqB,CAAC;AAE3E,MAAM,WAAW,eAAe,CAAC,KAAK,SAAS,MAAM;IACnD
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/primitives/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEpE,OAAO,KAAK,EACV,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,KAAK,EACV,2BAA2B,EAC3B,0BAA0B,EAC1B,2BAA2B,EAC5B,MAAM,gBAAgB,CAAC;AAExB,MAAM,MAAM,UAAU,GAAG,2BAA2B,GAAG,sBAAsB,CAAC;AAE9E,MAAM,MAAM,SAAS,GAAG,0BAA0B,GAAG,qBAAqB,CAAC;AAE3E,MAAM,WAAW,eAAe,CAAC,KAAK,SAAS,MAAM;IACnD;;;;;;;;;OASG;IACH,MAAM,EAAE;QACN,cAAc,EAAE,CACd,IAAI,EAAE,KAAK,EACX,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,UAAU,KACd,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;KAC1C,CAAC;IACF;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC;CACb;AAED,MAAM,MAAM,UAAU,GAAG,2BAA2B,GAAG,sBAAsB,CAAC;AAE9E,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAAG,2BAA2B,CAAC;AAEhF,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/primitives/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ColorValue, ImageSourcePropType } from 'react-native';\n\nimport type {\n StackToolbarBadgeProps,\n StackToolbarIconProps,\n StackToolbarLabelProps,\n StackToolbarMenuActionProps,\n StackToolbarMenuProps,\n} from '../layouts/stack-utils';\nimport type { LinkMenuActionProps, LinkMenuProps } from '../link/elements';\nimport type {\n NativeTabsTriggerBadgeProps,\n NativeTabsTriggerIconProps,\n NativeTabsTriggerLabelProps,\n} from '../native-tabs';\n\nexport type BadgeProps = NativeTabsTriggerBadgeProps | StackToolbarBadgeProps;\n\nexport type IconProps = NativeTabsTriggerIconProps | StackToolbarIconProps;\n\nexport interface VectorIconProps<NameT extends string> {\n /**\n * The family of the vector icon.\n *\n * @example\n * ```tsx\n * import MaterialCommunityIcons from '@expo/vector-icons/MaterialCommunityIcons';\n * ```\n */\n family: {\n getImageSource: (\n name: NameT,\n size: number,\n color: ColorValue\n ) => Promise<ImageSourcePropType | null>;\n };\n /**\n * The name of the vector icon.\n */\n name: NameT;\n}\n\nexport type LabelProps = NativeTabsTriggerLabelProps | StackToolbarLabelProps;\n\nexport type MenuActionProps = LinkMenuActionProps | StackToolbarMenuActionProps;\n\nexport type MenuProps = LinkMenuProps | StackToolbarMenuProps;\n"]}
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/primitives/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ColorValue, ImageSourcePropType } from 'react-native';\n\nimport type {\n StackToolbarBadgeProps,\n StackToolbarIconProps,\n StackToolbarLabelProps,\n StackToolbarMenuActionProps,\n StackToolbarMenuProps,\n} from '../layouts/stack-utils';\nimport type { LinkMenuActionProps, LinkMenuProps } from '../link/elements';\nimport type {\n NativeTabsTriggerBadgeProps,\n NativeTabsTriggerIconProps,\n NativeTabsTriggerLabelProps,\n} from '../native-tabs';\n\nexport type BadgeProps = NativeTabsTriggerBadgeProps | StackToolbarBadgeProps;\n\nexport type IconProps = NativeTabsTriggerIconProps | StackToolbarIconProps;\n\nexport interface VectorIconProps<NameT extends string> {\n /**\n * The family of the vector icon.\n *\n * @example\n * ```tsx\n * import MaterialCommunityIcons from '@expo/vector-icons/MaterialCommunityIcons';\n * ```\n *\n * @hideType\n */\n family: {\n getImageSource: (\n name: NameT,\n size: number,\n color: ColorValue\n ) => Promise<ImageSourcePropType | null>;\n };\n /**\n * The name of the vector icon.\n */\n name: NameT;\n}\n\nexport type LabelProps = NativeTabsTriggerLabelProps | StackToolbarLabelProps;\n\nexport type MenuActionProps = LinkMenuActionProps | StackToolbarMenuActionProps;\n\nexport type MenuProps = LinkMenuProps | StackToolbarMenuProps;\n"]}
|
package/build/ui/TabContext.d.ts
CHANGED
|
@@ -83,7 +83,7 @@ export declare const TabsDescriptorsContext: import("react").Context<Record<stri
|
|
|
83
83
|
getParent<T = import("@react-navigation/native").NavigationHelpers<ParamListBase, {}> | undefined>(id?: string): T;
|
|
84
84
|
getState(): TabNavigationState<any>;
|
|
85
85
|
} & import("@react-navigation/native").PrivateValueStore<[ParamListBase, unknown, unknown]>, "getParent"> & {
|
|
86
|
-
getParent<T = NavigationProp<ParamListBase, string, undefined, Readonly<{
|
|
86
|
+
getParent<T = NavigationProp<ParamListBase, string, string | undefined, Readonly<{
|
|
87
87
|
key: string;
|
|
88
88
|
index: number;
|
|
89
89
|
routeNames: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabContext.d.ts","sourceRoot":"","sources":["../../src/ui/TabContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EACL,uBAAuB,EACvB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,MAAM,MAAM,aAAa,GAAG,wBAAwB,CAAC;AAErD,MAAM,MAAM,8BAA8B,GAAG;IAC3C,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,uBAAuB,CAC5D,aAAa,EACb,MAAM,GAAG,SAAS,EAClB,kBAAkB,CAAC,aAAa,CAAC,EACjC,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,CAAC,aAAa,CAAC,CACtC,GAEC,IAAI,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,GAC1C,8BAA8B,CAAC;AAEjC,MAAM,MAAM,sBAAsB,CAChC,SAAS,SAAS,aAAa,EAC/B,SAAS,SAAS,MAAM,SAAS,GAAG,MAAM,SAAS,EACnD,WAAW,SAAS,MAAM,GAAG,SAAS,GAAG,SAA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AAC,CAAC,MAAM,CAAC,CAAC"}
|
package/build/ui/TabRouter.d.ts
CHANGED
|
@@ -93,7 +93,7 @@ export declare function ExpoTabRouter(options: ExpoTabRouterOptions): Router<Tab
|
|
|
93
93
|
};
|
|
94
94
|
source?: string;
|
|
95
95
|
target?: string;
|
|
96
|
-
} |
|
|
96
|
+
} | {
|
|
97
97
|
type: "REPLACE";
|
|
98
98
|
payload: {
|
|
99
99
|
name: string;
|
|
@@ -101,7 +101,7 @@ export declare function ExpoTabRouter(options: ExpoTabRouterOptions): Router<Tab
|
|
|
101
101
|
};
|
|
102
102
|
source?: string;
|
|
103
103
|
target?: string;
|
|
104
|
-
} | {
|
|
104
|
+
} | RNTabActionType | {
|
|
105
105
|
type: "JUMP_TO";
|
|
106
106
|
source?: string;
|
|
107
107
|
target?: string;
|
package/build/ui/Tabs.d.ts
CHANGED
|
@@ -167,7 +167,7 @@ export declare function useTabsWithChildren(options: UseTabsWithChildrenOptions)
|
|
|
167
167
|
getParent<T = import("@react-navigation/native").NavigationHelpers<ParamListBase, {}> | undefined>(id?: string): T;
|
|
168
168
|
getState(): TabNavigationState<any>;
|
|
169
169
|
} & import("@react-navigation/native").PrivateValueStore<[ParamListBase, unknown, unknown]>, "getParent"> & {
|
|
170
|
-
getParent<T = import("@react-navigation/native").NavigationProp<ParamListBase, string, undefined, Readonly<{
|
|
170
|
+
getParent<T = import("@react-navigation/native").NavigationProp<ParamListBase, string, string | undefined, Readonly<{
|
|
171
171
|
key: string;
|
|
172
172
|
index: number;
|
|
173
173
|
routeNames: string[];
|
|
@@ -219,7 +219,7 @@ export declare function useTabsWithChildren(options: UseTabsWithChildrenOptions)
|
|
|
219
219
|
getParent<T = import("@react-navigation/native").NavigationHelpers<ParamListBase, {}> | undefined>(id?: string): T;
|
|
220
220
|
getState(): TabNavigationState<any>;
|
|
221
221
|
} & import("@react-navigation/native").PrivateValueStore<[ParamListBase, unknown, unknown]>, "getParent"> & {
|
|
222
|
-
getParent<T = import("@react-navigation/native").NavigationProp<ParamListBase, string, undefined, Readonly<{
|
|
222
|
+
getParent<T = import("@react-navigation/native").NavigationProp<ParamListBase, string, string | undefined, Readonly<{
|
|
223
223
|
key: string;
|
|
224
224
|
index: number;
|
|
225
225
|
routeNames: string[];
|
package/build/ui/Tabs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../src/ui/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EAEvB,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAEjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EASL,iBAAiB,EAClB,MAAM,OAAO,CAAC;AACf,OAAO,EAAc,SAAS,EAAQ,MAAM,cAAc,CAAC;AAE3D,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EAErB,gBAAgB,EACjB,MAAM,cAAc,CAAC;AAKtB,OAAO,EAAY,aAAa,EAAqB,MAAM,UAAU,CAAC;AAQtE,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAE7B;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,IAAI,CAC/B,uBAAuB,CACrB,aAAa,EACb,GAAG,EACH,kBAAkB,CAAC,GAAG,CAAC,EACvB,qBAAqB,EACrB,qBAAqB,EACrB,GAAG,CACJ,EACD,UAAU,CACX,GAAG;IACF,YAAY,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;CACjD,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG;IAClC,mGAAmG;IACnG,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,+BAsBpC;AAGD,MAAM,MAAM,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GC,CAAA;eAA0B,CAAC;;;;;gBASzB,CAAC;iBAEP,CAAD;eAGD,CAAD;;oHAQgB,CAAC;;;;iBAMC,CAAC;;yGAIY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAkDrB,CAAC;kBAET,CAAH;kBACW,CAAC;;0GAE8D,CAAC,6BAA6B,CAAC;iBAAqB,CAAC;eAG1H,CAAF;;;;;gBAUE,CAAC;iBAID,CAAL;eAA0B,CAAC;;oHAE+E,CAAC;;;;iBAcvG,CAAC;;yGAMF,CAAD;;;;;;;;;;;;;;;;;;;;;;;;;;EAvKF;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,0BAA0B,GAAG,gBAAgB,CAiEzF"}
|
package/expo-module.config.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"component": {
|
|
4
4
|
"group": "expo.modules.router",
|
|
5
5
|
"module": "expo.modules.router",
|
|
6
|
-
"version": "55.0.0-beta.
|
|
6
|
+
"version": "55.0.0-beta.2",
|
|
7
7
|
"attributes": {
|
|
8
8
|
"org.gradle.status": "release"
|
|
9
9
|
}
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
{
|
|
27
|
-
"name": "expo.modules.router-55.0.0-beta.
|
|
28
|
-
"url": "expo.modules.router-55.0.0-beta.
|
|
27
|
+
"name": "expo.modules.router-55.0.0-beta.2.aar",
|
|
28
|
+
"url": "expo.modules.router-55.0.0-beta.2.aar",
|
|
29
29
|
"size": 13665,
|
|
30
30
|
"sha512": "0c996832cda246cbf02acf875f7c3add8610a0e5e7c466bbe5fa2f073a6a644933eec90d1bff2a7fac7fd3c0c5bdae8a695373cebdec4f9853ce116658960554",
|
|
31
31
|
"sha256": "054876f9b960d2ed5b7762c66b32c7e994f942c05013456f5e41e1fe6c71ee54",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
],
|
|
61
61
|
"files": [
|
|
62
62
|
{
|
|
63
|
-
"name": "expo.modules.router-55.0.0-beta.
|
|
64
|
-
"url": "expo.modules.router-55.0.0-beta.
|
|
63
|
+
"name": "expo.modules.router-55.0.0-beta.2.aar",
|
|
64
|
+
"url": "expo.modules.router-55.0.0-beta.2.aar",
|
|
65
65
|
"size": 13665,
|
|
66
66
|
"sha512": "0c996832cda246cbf02acf875f7c3add8610a0e5e7c466bbe5fa2f073a6a644933eec90d1bff2a7fac7fd3c0c5bdae8a695373cebdec4f9853ce116658960554",
|
|
67
67
|
"sha256": "054876f9b960d2ed5b7762c66b32c7e994f942c05013456f5e41e1fe6c71ee54",
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
},
|
|
81
81
|
"files": [
|
|
82
82
|
{
|
|
83
|
-
"name": "expo.modules.router-55.0.0-beta.
|
|
84
|
-
"url": "expo.modules.router-55.0.0-beta.
|
|
83
|
+
"name": "expo.modules.router-55.0.0-beta.2-sources.jar",
|
|
84
|
+
"url": "expo.modules.router-55.0.0-beta.2-sources.jar",
|
|
85
85
|
"size": 2318,
|
|
86
86
|
"sha512": "9864add8e93e3c0a9a9c930aaed67016b15054c3fafd59a0bd3a5402d7cdc5827be84c22c2c137f3e5acb4e39270d9bfb9ca3fe11234458d4f2e0d4c78747f48",
|
|
87
87
|
"sha256": "d5dff6259e86de721fc0f07fe740a5e18088e19b76738719b0a6f94caef06224",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
992661bb38705c797bda63138df24424
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1e680ac7128b11762becab1ed5b2fe529d822a89
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
273bc768ca05a672aa3b6105ea84cc5963cf2992b8d2855bbb72f0521cb7cce4
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2f0c215c0627c5d9b49799f576d0140a5304ab7ba781897dcbb1019f77afa0b8e99bc6d14b9ab43dd2edb3467746e32302172030fb87428b79a6e6a7af506523
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<modelVersion>4.0.0</modelVersion>
|
|
10
10
|
<groupId>expo.modules.router</groupId>
|
|
11
11
|
<artifactId>expo.modules.router</artifactId>
|
|
12
|
-
<version>55.0.0-beta.
|
|
12
|
+
<version>55.0.0-beta.2</version>
|
|
13
13
|
<packaging>aar</packaging>
|
|
14
14
|
<name>expo.modules.router</name>
|
|
15
15
|
<url>https://github.com/expo/expo</url>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
c3bd0a945b093757115ba2f7c24a252b
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
7f2d119d90ba6a5e92f234c11765b91a0054e9bd
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
6bc1ddb4f7b26f010755d005b6950939e79ee6f7200398318aad52ad8476b30a
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
d1ba62a8d4efabb521d6717363a8bd97af31ebc2db01518686febc87c09658b8737a5b43644935e8dc1e2855eb72e5fdc2e7c954196a584ada6b739d8a45b45d
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<groupId>expo.modules.router</groupId>
|
|
4
4
|
<artifactId>expo.modules.router</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<latest>55.0.0-beta.
|
|
7
|
-
<release>55.0.0-beta.
|
|
6
|
+
<latest>55.0.0-beta.2</latest>
|
|
7
|
+
<release>55.0.0-beta.2</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>55.0.0-beta.
|
|
9
|
+
<version>55.0.0-beta.2</version>
|
|
10
10
|
</versions>
|
|
11
|
-
<lastUpdated>
|
|
11
|
+
<lastUpdated>20260123000037</lastUpdated>
|
|
12
12
|
</versioning>
|
|
13
13
|
</metadata>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
50e3cd8f1e8d958e65ef0937df15bf67
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
f4dc914f726d15ff459cbddd475486689841786e
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
cf347399840167c741284950202149884c446a51d02454aec2681dcd7c57dc50
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
7a8fca553d9a7106247c7f7dcca4bf7c6d66f2646fcbbffc05238c118bc473608c76ed9a15f2af47f748cf79303047ce4733f053ce1c855a1be8be4fe25219c8
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-router",
|
|
3
|
-
"version": "55.0.0-beta.
|
|
3
|
+
"version": "55.0.0-beta.2",
|
|
4
4
|
"description": "Expo Router is a file-based router for React Native and web applications.",
|
|
5
5
|
"author": "650 Industries, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -81,13 +81,13 @@
|
|
|
81
81
|
"expo"
|
|
82
82
|
],
|
|
83
83
|
"peerDependencies": {
|
|
84
|
-
"@expo/metro-runtime": "^55.0.
|
|
85
|
-
"@expo/log-box": "55.0.
|
|
84
|
+
"@expo/metro-runtime": "^55.0.1",
|
|
85
|
+
"@expo/log-box": "55.0.1",
|
|
86
86
|
"@react-navigation/drawer": "^7.7.2",
|
|
87
87
|
"@testing-library/react-native": ">= 12.0.0",
|
|
88
88
|
"expo": "*",
|
|
89
|
-
"expo-constants": "^55.0.
|
|
90
|
-
"expo-linking": "^55.0.
|
|
89
|
+
"expo-constants": "^55.0.1",
|
|
90
|
+
"expo-linking": "^55.0.2",
|
|
91
91
|
"react": "*",
|
|
92
92
|
"react-dom": "*",
|
|
93
93
|
"react-native": "*",
|
|
@@ -132,8 +132,8 @@
|
|
|
132
132
|
"react-server-dom-webpack": "~19.0.3"
|
|
133
133
|
},
|
|
134
134
|
"dependencies": {
|
|
135
|
-
"@expo/metro-runtime": "^55.0.
|
|
136
|
-
"@expo/schema-utils": "^55.0.
|
|
135
|
+
"@expo/metro-runtime": "^55.0.1",
|
|
136
|
+
"@expo/schema-utils": "^55.0.1",
|
|
137
137
|
"@radix-ui/react-slot": "1.2.0",
|
|
138
138
|
"@radix-ui/react-tabs": "^1.1.12",
|
|
139
139
|
"@react-navigation/bottom-tabs": "7.10.1",
|
|
@@ -142,9 +142,9 @@
|
|
|
142
142
|
"client-only": "^0.0.1",
|
|
143
143
|
"debug": "^4.3.4",
|
|
144
144
|
"escape-string-regexp": "^4.0.0",
|
|
145
|
-
"expo-image": "55.0.
|
|
146
|
-
"expo-server": "^55.0.
|
|
147
|
-
"expo-symbols": "^55.0.
|
|
145
|
+
"expo-image": "55.0.1",
|
|
146
|
+
"expo-server": "^55.0.1",
|
|
147
|
+
"expo-symbols": "^55.0.1",
|
|
148
148
|
"fast-deep-equal": "^3.1.3",
|
|
149
149
|
"invariant": "^2.2.4",
|
|
150
150
|
"nanoid": "^3.3.8",
|
|
@@ -158,5 +158,5 @@
|
|
|
158
158
|
"use-latest-callback": "^0.2.1",
|
|
159
159
|
"vaul": "^1.1.2"
|
|
160
160
|
},
|
|
161
|
-
"gitHead": "
|
|
161
|
+
"gitHead": "326a6b473b3d2a90f3f96e9eea8f995bb2677f30"
|
|
162
162
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
283d675d18eb486c2dc289f4507eaf17
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
b3d43d6be88d079b3a3435c58864c8b6ba7da700
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
225a404b691bfd25f25b914bd3f377b20b62091f90f47bcf15677270f5d24831
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
638f5684f3432f660f28fdf0e6d774a57a7b613bde8344d9736fb87ee47f749a686fab4c7473607e1bdcf4d9e5363384cc847f3e2c674102fbcb5f7f84b64059
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
5985edc1f98a578cb1350a1f75e1723f
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
bdc35eb573c02176537c8319feb25dc4b6e6ee96
|