You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-2
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ We use [`react-native-fetch-blob`](https://github.com/wkh237/react-native-fetch-
17
17
_You should only have to do this once._
18
18
19
19
react-native link react-native-fetch-blob
20
-
20
+
21
21
Or, if you want to add Android permissions to AndroidManifest.xml automatically, use this one:
22
22
23
23
RNFB_ANDROID_PERMISSIONS=true react-native link react-native-fetch-blob
@@ -51,6 +51,9 @@ When providing `source={{uri: 'https://example.com/path/to/remote/image.jpg'}}`
51
51
*`defaultSource` - prop to display a background image while the source image is downloaded. This will work even in android, but will not display background image if there you set borderRadius on this component style prop
52
52
*`resolveHeaders` - _function_ when provided, the returned object will be used as the headers object when sending the request to download the image. **(default: () => Promise.resolve({}))**
53
53
*`cacheLocation` - _string_ allows changing the root directory to use for caching. The default directory is sufficient for most use-cases. Images in this directory may be purged by Android automatically to free up space. Use `ImageCacheProvider.LOCATION.BUNDLE` if the cached images are critical (you will have to manage cleanup manually). **(default: ImageCacheProvider.LOCATION.CACHE)**
54
+
*`loadingIndicator` - _component_ prop to set custom `ActivityIndicator`.
55
+
*`fallbackSource` - prop to set placeholder image. when `source.uri` is null or cached failed, the `fallbackSource` will be display.
56
+
54
57
55
58
### ImageCacheProvider
56
59
`ImageCacheProvider` exposes interaction with the cache layer that is used by `CachedImage` so you can use it to prefetch some urls in the background while you app is starting,
@@ -109,7 +112,10 @@ Deletes the underlying cached image for a given url.
109
112
Cache a list of urls, if any of the urls is already cached will not try to download again.
0 commit comments