repoweaver
Version:
A GitHub App that skillfully weaves multiple templates together to create and update repositories with intelligent merge strategies
1 lines • 5.19 kB
JSON
{"ast":null,"code":"\"use strict\";\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nconst _excluded = [\"id\", \"initialRouteName\", \"backBehavior\", \"children\", \"layout\", \"screenListeners\", \"screenOptions\", \"screenLayout\", \"UNSTABLE_router\"];\nimport { createNavigatorFactory, TabRouter, useNavigationBuilder } from '@react-navigation/native';\nimport { BottomTabView } from \"../views/BottomTabView.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction BottomTabNavigator(_ref) {\n let {\n id,\n initialRouteName,\n backBehavior,\n children,\n layout,\n screenListeners,\n screenOptions,\n screenLayout,\n UNSTABLE_router\n } = _ref,\n rest = _objectWithoutPropertiesLoose(_ref, _excluded);\n const {\n state,\n descriptors,\n navigation,\n NavigationContent\n } = useNavigationBuilder(TabRouter, {\n id,\n initialRouteName,\n backBehavior,\n children,\n layout,\n screenListeners,\n screenOptions,\n screenLayout,\n UNSTABLE_router\n });\n return _jsx(NavigationContent, {\n children: _jsx(BottomTabView, Object.assign({}, rest, {\n state: state,\n navigation: navigation,\n descriptors: descriptors\n }))\n });\n}\nexport function createBottomTabNavigator(config) {\n return createNavigatorFactory(BottomTabNavigator)(config);\n}","map":{"version":3,"names":["createNavigatorFactory","TabRouter","useNavigationBuilder","BottomTabView","jsx","_jsx","BottomTabNavigator","_ref","id","initialRouteName","backBehavior","children","layout","screenListeners","screenOptions","screenLayout","UNSTABLE_router","rest","_objectWithoutPropertiesLoose","_excluded","state","descriptors","navigation","NavigationContent","Object","assign","createBottomTabNavigator","config"],"sources":["/Users/pmouli/Documents/GitHub.nosync/boots-strapper/mobile/node_modules/@react-navigation/bottom-tabs/src/navigators/createBottomTabNavigator.tsx"],"sourcesContent":["import {\n createNavigatorFactory,\n type NavigatorTypeBagBase,\n type ParamListBase,\n type StaticConfig,\n type TabActionHelpers,\n type TabNavigationState,\n TabRouter,\n type TabRouterOptions,\n type TypedNavigator,\n useNavigationBuilder,\n} from '@react-navigation/native';\n\nimport type {\n BottomTabNavigationEventMap,\n BottomTabNavigationOptions,\n BottomTabNavigationProp,\n BottomTabNavigatorProps,\n} from '../types';\nimport { BottomTabView } from '../views/BottomTabView';\n\nfunction BottomTabNavigator({\n id,\n initialRouteName,\n backBehavior,\n children,\n layout,\n screenListeners,\n screenOptions,\n screenLayout,\n UNSTABLE_router,\n ...rest\n}: BottomTabNavigatorProps) {\n const { state, descriptors, navigation, NavigationContent } =\n useNavigationBuilder<\n TabNavigationState<ParamListBase>,\n TabRouterOptions,\n TabActionHelpers<ParamListBase>,\n BottomTabNavigationOptions,\n BottomTabNavigationEventMap\n >(TabRouter, {\n id,\n initialRouteName,\n backBehavior,\n children,\n layout,\n screenListeners,\n screenOptions,\n screenLayout,\n UNSTABLE_router,\n });\n\n return (\n <NavigationContent>\n <BottomTabView\n {...rest}\n state={state}\n navigation={navigation}\n descriptors={descriptors}\n />\n </NavigationContent>\n );\n}\n\nexport function createBottomTabNavigator<\n const ParamList extends ParamListBase,\n const NavigatorID extends string | undefined = undefined,\n const TypeBag extends NavigatorTypeBagBase = {\n ParamList: ParamList;\n NavigatorID: NavigatorID;\n State: TabNavigationState<ParamList>;\n ScreenOptions: BottomTabNavigationOptions;\n EventMap: BottomTabNavigationEventMap;\n NavigationList: {\n [RouteName in keyof ParamList]: BottomTabNavigationProp<\n ParamList,\n RouteName,\n NavigatorID\n >;\n };\n Navigator: typeof BottomTabNavigator;\n },\n const Config extends StaticConfig<TypeBag> = StaticConfig<TypeBag>,\n>(config?: Config): TypedNavigator<TypeBag, Config> {\n return createNavigatorFactory(BottomTabNavigator)(config);\n}\n"],"mappings":";;;;AAAA,SACEA,sBAAsB,EAMtBC,SAAS,EAGTC,oBAAoB,QACf,0BAA0B;AAQjC,SAASC,aAAa;AAAiC,SAAAC,GAAA,IAAAC,IAAA;AAEvD,SAASC,kBAAkBA,CAAAC,IAAA,EAWC;EAAA,IAXA;MAC1BC,EAAE;MACFC,gBAAgB;MAChBC,YAAY;MACZC,QAAQ;MACRC,MAAM;MACNC,eAAe;MACfC,aAAa;MACbC,YAAY;MACZC;IAEuB,CAAC,GAAAT,IAAA;IADrBU,IAAA,GAAAC,6BAAA,CAAAX,IAAA,EAAAY,SAAA;EAEH,MAAM;IAAEC,KAAK;IAAEC,WAAW;IAAEC,UAAU;IAAEC;EAAkB,CAAC,GACzDrB,oBAAoB,CAMlBD,SAAS,EAAE;IACXO,EAAE;IACFC,gBAAgB;IAChBC,YAAY;IACZC,QAAQ;IACRC,MAAM;IACNC,eAAe;IACfC,aAAa;IACbC,YAAY;IACZC;EACF,CAAC,CAAC;EAEJ,OACEX,IAAA,CAACkB,iBAAiB;IAAAZ,QAAA,EAChBN,IAAA,CAACF,aAAa,EAAAqB,MAAA,CAAAC,MAAA,KACRR,IAAI;MACRG,KAAK,EAAEA,KAAM;MACbE,UAAU,EAAEA,UAAW;MACvBD,WAAW,EAAEA;IAAA,EACd;EAAC,CACe,CAAC;AAExB;AAEA,OAAO,SAASK,wBAAwBA,CAmBtCC,MAAe,EAAmC;EAClD,OAAO3B,sBAAsB,CAACM,kBAAkB,CAAC,CAACqB,MAAM,CAAC;AAC3D","ignoreList":[]},"metadata":{"hasCjsExports":false},"sourceType":"module","externalDependencies":[]}