yeet
This commit is contained in:
25
node_modules/react-native-web/dist/cjs/modules/AssetRegistry/index.js
generated
vendored
Normal file
25
node_modules/react-native-web/dist/cjs/modules/AssetRegistry/index.js
generated
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.registerAsset = registerAsset;
|
||||
exports.getAssetByID = getAssetByID;
|
||||
|
||||
/**
|
||||
* Copyright (c) Nicolas Gallagher.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
*
|
||||
*/
|
||||
var assets = [];
|
||||
|
||||
function registerAsset(asset) {
|
||||
// `push` returns new array length, so the first asset will
|
||||
// get id 1 (not 0) to make the value truthy
|
||||
return assets.push(asset);
|
||||
}
|
||||
|
||||
function getAssetByID(assetId) {
|
||||
return assets[assetId - 1];
|
||||
}
|
Reference in New Issue
Block a user