This commit is contained in:
Yamozha
2021-04-02 02:24:13 +03:00
parent c23950b545
commit 7256d79e2c
31493 changed files with 3036630 additions and 0 deletions

17
node_modules/expo-asset/build/AssetHooks.d.ts generated vendored Normal file
View File

@ -0,0 +1,17 @@
import { Asset } from './Asset';
/**
* Downloads and stores one or more assets locally.
* After the assets are loaded, this hook returns a list of asset instances.
* If something went wrong when loading the assets, an error is returned.
*
* Note, the assets are not "reloaded" when you dynamically change the asset list.
*
* @see https://docs.expo.io/versions/latest/sdk/asset/
* @example
* ```tsx
* const [assets, error] = useAssets(require('path/to/asset.jpg'));
*
* return !assets ? null : <Image source={assets[0]} />;
* ```
*/
export declare function useAssets(moduleIds: number | number[]): [Asset[] | undefined, Error | undefined];