b69845faeb5ba09678a0c1b63bece3af.json 2.3 KB
{"ast":null,"code":"var _interopRequireDefault=require(\"@babel/runtime/helpers/interopRequireDefault\");Object.defineProperty(exports,\"__esModule\",{value:true});exports.default=ensureNativeModuleAvailable;var _Platform=_interopRequireDefault(require(\"react-native-web/dist/exports/Platform\"));var _NativeModules=_interopRequireDefault(require(\"react-native-web/dist/exports/NativeModules\"));var NativeIconAPI=_NativeModules.default.RNVectorIconsManager||_NativeModules.default.RNVectorIconsModule;function ensureNativeModuleAvailable(){if(!NativeIconAPI){if(_Platform.default.OS==='android'){throw new Error('RNVectorIconsModule not available, did you properly integrate the module? Try running `react-native link react-native-vector-icons` and recompiling.');}throw new Error('RNVectorIconsManager not available, did you add the library to your project and link with libRNVectorIcons.a? Try running `react-native link react-native-vector-icons` and recompiling.');}}","map":{"version":3,"sources":["C:/Users/bluej/Desktop/2_2/searchGuide/searchGuide/node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/lib/ensure-native-module-available.js"],"names":["NativeIconAPI","NativeModules","RNVectorIconsManager","RNVectorIconsModule","ensureNativeModuleAvailable","Platform","OS","Error"],"mappings":"kXAEA,GAAMA,CAAAA,aAAa,CACjBC,uBAAcC,oBAAd,EAAsCD,uBAAcE,mBADtD,CAGe,QAASC,CAAAA,2BAAT,EAAuC,CACpD,GAAI,CAACJ,aAAL,CAAoB,CAClB,GAAIK,kBAASC,EAAT,GAAgB,SAApB,CAA+B,CAC7B,KAAM,IAAIC,CAAAA,KAAJ,CACJ,sJADI,CAAN,CAGD,CACD,KAAM,IAAIA,CAAAA,KAAJ,CACJ,0LADI,CAAN,CAGD,CACF","sourcesContent":["import { Platform, NativeModules } from 'react-native';\n\nconst NativeIconAPI =\n  NativeModules.RNVectorIconsManager || NativeModules.RNVectorIconsModule;\n\nexport default function ensureNativeModuleAvailable() {\n  if (!NativeIconAPI) {\n    if (Platform.OS === 'android') {\n      throw new Error(\n        'RNVectorIconsModule not available, did you properly integrate the module? Try running `react-native link react-native-vector-icons` and recompiling.'\n      );\n    }\n    throw new Error(\n      'RNVectorIconsManager not available, did you add the library to your project and link with libRNVectorIcons.a? Try running `react-native link react-native-vector-icons` and recompiling.'\n    );\n  }\n}\n"]},"metadata":{},"sourceType":"script"}