Skip to content

Commit 3218dab

Browse files
committed
docs: add image object type to example
1 parent 47ec787 commit 3218dab

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ This example uses [georstat/react-native-image-cache](https://github.com/georsta
7575
```tsx
7676
import { CacheManager, CachedImage } from '@georstat/react-native-image-cache';
7777
import { Dirs } from 'react-native-file-access';
78+
import {
79+
ImageGallery,
80+
ImageObject,
81+
} from '@georstat/react-native-image-gallery';
7882

7983
CacheManager.config = {
8084
baseDir: `${Dirs.CacheDir}/images_cache/`,
@@ -96,7 +100,7 @@ const MyGallery = () => {
96100
return <Footer total={images.length} currentIndex={currentIndex} />;
97101
};
98102

99-
const renderCustomImage = (image: Image) => {
103+
const renderCustomImage = (image: ImageObject) => {
100104
return (
101105
<View style={styles.customImageContainer}>
102106
<CachedImage

0 commit comments

Comments
 (0)