5e16f0ef4a4fc5d06d53376be8d9bd0c.json 1.23 KB
{"ast":null,"code":"Object.defineProperty(exports,\"__esModule\",{value:true});exports.registerAsset=registerAsset;exports.getAssetByID=getAssetByID;var assets=[];function registerAsset(asset){return assets.push(asset);}function getAssetByID(assetId){return assets[assetId-1];}","map":{"version":3,"sources":["C:/Users/bluej/Desktop/2_2/searchGuide/searchGuide/node_modules/react-native-web/dist/modules/AssetRegistry/index.js"],"names":["assets","registerAsset","asset","push","getAssetByID","assetId"],"mappings":"+HAQA,GAAIA,CAAAA,MAAM,CAAG,EAAb,CACO,QAASC,CAAAA,aAAT,CAAuBC,KAAvB,CAA8B,CAGnC,MAAOF,CAAAA,MAAM,CAACG,IAAP,CAAYD,KAAZ,CAAP,CACD,CACM,QAASE,CAAAA,YAAT,CAAsBC,OAAtB,CAA+B,CACpC,MAAOL,CAAAA,MAAM,CAACK,OAAO,CAAG,CAAX,CAAb,CACD","sourcesContent":["/**\n * Copyright (c) Nicolas Gallagher.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nvar assets = [];\nexport function registerAsset(asset) {\n  // `push` returns new array length, so the first asset will\n  // get id 1 (not 0) to make the value truthy\n  return assets.push(asset);\n}\nexport function getAssetByID(assetId) {\n  return assets[assetId - 1];\n}"]},"metadata":{},"sourceType":"script"}