yeet
This commit is contained in:
17
node_modules/expo-asset/build/AssetHooks.d.ts
generated
vendored
Normal file
17
node_modules/expo-asset/build/AssetHooks.d.ts
generated
vendored
Normal 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];
|
Reference in New Issue
Block a user