Home
last modified time | relevance | path

Searched refs:fromModule (Results 1 – 25 of 59) sorted by relevance

123

/expo/apps/test-suite/tests/
H A DAsset.js34 const asset = Asset.fromModule(module);
41 const asset = Asset.fromModule(module);
50 const asset = Asset.fromModule(module);
H A DAsset.web.js25 const asset = Asset.fromModule(module);
34 const asset = Asset.fromModule(module);
H A DBarCodeScanner.js70 const asset = await Asset.fromModule(require('../assets/black-128x256.png'));
78 const asset = await Asset.fromModule(require('../assets/qrcode_expo.jpg'));
107 const asset = await Asset.fromModule(require('../assets/qrcode_photo_wikipedia.jpg'));
151 const asset = await Asset.fromModule(require('../assets/datamatrix_expo.png'));
180 const asset = await Asset.fromModule(require('../assets/datamatrix_expo.png'));
190 const asset = await Asset.fromModule(require('../assets/multiple_codes.png'));
H A DVideo.js28 const mp4Asset = Asset.fromModule(mp4Source);
32 const portraitAsset = Asset.fromModule(require('../assets/portrait_video.mp4'));
36 const imageAsset = Asset.fromModule(require('../assets/black-128x256.png'));
40 const webmAsset = Asset.fromModule(require('../assets/unsupported_bunny.webm'));
150 <Video style={style} source={Asset.fromModule(mp4Source)} />
/expo/packages/@expo/cli/src/start/server/metro/
H A Dexternals.ts27 export function getNodeExternalModuleId(fromModule: string, moduleId: string) {
29 path.dirname(fromModule),
/expo/packages/expo-asset/build/
H A DAsset.d.ts89 static fromModule(virtualAssetModule: number | string): Asset;
H A DAsset.js107 return Promise.all(moduleIds.map((moduleId) => Asset.fromModule(moduleId).downloadAsync()));
116 static fromModule(virtualAssetModule) { method in Asset
/expo/packages/expo-font/build/
H A DFontLoader.web.js13 return uriFromFontSource(Asset.fromModule(asset));
H A DFontLoader.js22 return Asset.fromModule(source);
H A DFontLoader.js.map1fromModule(source);\n } else if (typeof source === 'object' && typeof source.uri !== 'undefined')…
/expo/packages/expo-font/src/
H A DFontLoader.web.ts13 return uriFromFontSource(Asset.fromModule(asset));
H A DFontLoader.ts29 return Asset.fromModule(source);
/expo/packages/expo-asset/src/
H A DAsset.ts133 return Promise.all(moduleIds.map((moduleId) => Asset.fromModule(moduleId).downloadAsync()));
143 static fromModule(virtualAssetModule: number | string): Asset {
/expo/apps/native-component-list/src/screens/GL/
H A DBasicTextureScreen.tsx46 const asset = Asset.fromModule(require('../../../assets/images/nikki.png'));
59 const imageAsset = Asset.fromModule(require('../../../assets/images/nikki-small-purple.png'));
H A DPIXISpriteScreen.tsx23 const asset = Asset.fromModule(require('../../../assets/images/nikki.png'));
/expo/packages/expo-maps/build/
H A DUtils.js158 iconPath = await Asset.fromModule(child.props.icon).downloadAsync();
180 const iconPath = await Asset.fromModule(child.props.icon).downloadAsync();
229 const filePath = await Asset.fromModule(child.props.filePath).downloadAsync();
248 iconPath = await Asset.fromModule(child.props.icon).downloadAsync();
/expo/packages/expo-maps/src/
H A DUtils.ts209 iconPath = await Asset.fromModule(child.props.icon).downloadAsync();
234 const iconPath = await Asset.fromModule(child.props.icon).downloadAsync();
289 const filePath = await Asset.fromModule(child.props.filePath).downloadAsync();
310 iconPath = await Asset.fromModule(child.props.icon).downloadAsync();
/expo/packages/expo-asset/src/__tests__/
H A DAsset-test.ts113 const asset = Asset.fromModule(1);
124 expect(() => Asset.fromModule(2)).toThrowError();
/expo/apps/native-component-list/src/screens/AV/
H A DAudioScreen.tsx35 source={Asset.fromModule(require('../../../assets/sounds/polonez.mp3'))}
/expo/apps/native-component-list/src/screens/
H A DSharingScreen.tsx29 const asset = Asset.fromModule(image);
H A DFileSystemScreen.tsx200 const asset = Asset.fromModule(require('../../assets/index.html'));
211 const asset = Asset.fromModule(require('../../assets/index.html'));
222 const asset = Asset.fromModule(require('../../assets/index.html'));
/expo/packages/expo-av/build/
H A DAV.js94 asset = Asset.fromModule(source);
/expo/docs/pages/versions/v46.0.0/sdk/
H A Dapp-loading.mdx61 return Asset.fromModule(image).downloadAsync();
/expo/packages/expo-asset/
H A DCHANGELOG.md97 - Fix `fromModule` on restrictive (Snack) web environments. ([#14435](https://github.com/expo/expo/…
145 - Fixed `Asset.loadAsync()` TypeScript signature to match `Asset.fromModule()` types. ([#9246](http…
/expo/docs/pages/versions/unversioned/sdk/
H A Dimagemanipulator.mdx45 const image = Asset.fromModule(require('./assets/snack-icon.png'));

123