Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
gtokman committed Nov 2, 2024
1 parent 6ea58fa commit 807e746
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export type ImageOptions = {
grayscale?: number;
allowHardware?: boolean;
ignoreQueryParamsForCacheKey?: boolean;
priority?: "veryLow" | "low" | "normal" | "high" | "veryHigh"
priority?: 'veryLow' | 'low' | 'normal' | 'high' | 'veryHigh';
};

/**
Expand Down Expand Up @@ -135,12 +135,12 @@ export const clearCache = async () => {
}
};

export const prefetch(sources: string[]): Promise<void> {
export const prefetch = (sources: string[]): Promise<void> => {
if (Platform.OS === 'ios') {
const { FasterImageViewManager } = NativeModules;
return FasterImageViewManager.prefetch(sources);
} else {
const { FasterImageModule } = NativeModules;
return FasterImageModule.prefetch(sources);
}
}
};

0 comments on commit 807e746

Please sign in to comment.