How to use the expo-file-system.bundleDirectory function in expo-file-system

To help you get started, we’ve selected a few expo-file-system examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github expo / expo / packages / expo-asset / build / EmbeddedAssets.js View on Github external
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
github expo / expo / packages / expo-asset / src / EmbeddedAssets.ts View on Github external
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}`;
}