Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function getEmbeddedAssetUri(hash, type) {
const assetName = `asset_${hash}${type ? `.${type}` : ''}`;
if (__DEV__ || Constants.appOwnership !== 'standalone' || !bundledAssets.has(assetName)) {
return null;
}
return `${FileSystem.bundleDirectory}${assetName}`;
}
//# sourceMappingURL=EmbeddedAssets.js.map
export function getEmbeddedAssetUri(hash: string, type: string | null): string | null {
const assetName = `asset_${hash}${type ? `.${type}` : ''}`;
if (__DEV__ || Constants.appOwnership !== 'standalone' || !bundledAssets.has(assetName)) {
return null;
}
return `${FileSystem.bundleDirectory}${assetName}`;
}