UNPKG

@toast-studios/asset-manager

Version:

A React Native asset management library with intelligent caching and loading strategies

16 lines (15 loc) 482 B
export { NetworkAwareStrategy } from './NetworkAwareStrategy'; import { DownloadStrategy, IDownloadStrategy, StrategyConfig } from '../types/index'; /** * Factory for creating download strategies */ export declare class StrategyFactory { /** * Create a strategy based on type */ static create(_config?: StrategyConfig): IDownloadStrategy; } /** * Create a strategy instance */ export declare function createStrategy(type: DownloadStrategy): IDownloadStrategy;