UNPKG

repoweaver

Version:

A GitHub App that skillfully weaves multiple templates together to create and update repositories with intelligent merge strategies

1 lines 3.67 kB
{"ast":null,"code":"import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nconst _excluded = [\"style\", \"index\", \"children\", \"visibility\"];\nfunction _extends() {\n return _extends = Object.assign ? Object.assign.bind() : function (n) {\n for (var e = 1; e < arguments.length; e++) {\n var t = arguments[e];\n for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n }\n return n;\n }, _extends.apply(null, arguments);\n}\nimport React from 'react';\nimport Animated from \"react-native-web/dist/exports/Animated\";\nimport Platform from \"react-native-web/dist/exports/Platform\";\nimport View from \"react-native-web/dist/exports/View\";\nclass BottomNavigationRouteScreen extends React.Component {\n render() {\n const _this$props = this.props,\n {\n style,\n index,\n children,\n visibility\n } = _this$props,\n rest = _objectWithoutPropertiesLoose(_this$props, _excluded);\n const display = Platform.OS === 'web' ? visibility === 0 ? 'none' : 'flex' : undefined;\n return React.createElement(View, _extends({\n testID: `RouteScreen: ${index}`,\n style: [style, {\n display\n }]\n }, rest), children);\n }\n}\nexport default Animated.createAnimatedComponent(BottomNavigationRouteScreen);","map":{"version":3,"names":["React","Animated","Platform","View","BottomNavigationRouteScreen","Component","render","_this$props","props","style","index","children","visibility","rest","_objectWithoutPropertiesLoose","_excluded","display","OS","undefined","createElement","_extends","testID","createAnimatedComponent"],"sources":["/Users/pmouli/Documents/GitHub.nosync/boots-strapper/mobile/node_modules/react-native-paper/src/components/BottomNavigation/BottomNavigationRouteScreen.tsx"],"sourcesContent":["import React from 'react';\nimport { Animated, Platform, View, ViewProps } from 'react-native';\n\ninterface Props extends ViewProps {\n visibility?: 0 | 1 | Animated.AnimatedInterpolation<number>;\n index: number;\n}\n\nclass BottomNavigationRouteScreen extends React.Component<Props> {\n render(): JSX.Element {\n const { style, index, children, visibility, ...rest } = this.props;\n\n // On Web, the unfocused tab screens can still be clicked since they are transparent, but still there\n // Hiding them with `display: none` makes sure that they won't receive clicks\n // We only set it on Web since on native, react-native-pager-view's breaks due to layout changing\n const display =\n Platform.OS === 'web' ? (visibility === 0 ? 'none' : 'flex') : undefined;\n\n return (\n <View\n testID={`RouteScreen: ${index}`}\n style={[style, { display }]}\n {...rest}\n >\n {children}\n </View>\n );\n }\n}\n\nexport default Animated.createAnimatedComponent(BottomNavigationRouteScreen);\n"],"mappings":";;;;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAAA,OAAAC,QAAA;AAAA,OAAAC,QAAA;AAAA,OAAAC,IAAA;AAQzB,MAAMC,2BAA2B,SAASJ,KAAK,CAACK,SAAS,CAAQ;EAC/DC,MAAMA,CAAA,EAAgB;IACpB,MAAAC,WAAA,GAAwD,IAAI,CAACC,KAAK;MAA5D;QAAEC,KAAK;QAAEC,KAAK;QAAEC,QAAQ;QAAEC;MAAoB,CAAC,GAAAL,WAAA;MAANM,IAAA,GAAAC,6BAAA,CAAAP,WAAA,EAAAQ,SAAA;IAK/C,MAAMC,OAAO,GACXd,QAAQ,CAACe,EAAE,KAAK,KAAK,GAAIL,UAAU,KAAK,CAAC,GAAG,MAAM,GAAG,MAAM,GAAIM,SAAS;IAE1E,OACElB,KAAA,CAAAmB,aAAA,CAAChB,IAAI,EAAAiB,QAAA;MACHC,MAAM,EAAE,gBAAgBX,KAAK,EAAG;MAChCD,KAAK,EAAE,CAACA,KAAK,EAAE;QAAEO;MAAQ,CAAC;IAAE,GACxBH,IAAI,GAEPF,QACG,CAAC;EAEX;AACF;AAEA,eAAeV,QAAQ,CAACqB,uBAAuB,CAAClB,2BAA2B,CAAC","ignoreList":[]},"metadata":{"hasCjsExports":false},"sourceType":"module","externalDependencies":[]}