File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,12 @@ npm i react-native-cacheable-image --save
29
29
## Usage
30
30
import CacheableImage from 'react-native-cacheable-image'
31
31
32
+ ### Props
33
+
34
+ * ` activityIndicatorProps ` - pass this property to alter the ActivityIndicator
35
+ * ` defaultSource ` - pass this property to provide a default source to fallback on (the defaultSource is attached to another CacheableImage component)
36
+
37
+
32
38
## Example
33
39
34
40
<CacheableImage
@@ -38,7 +44,8 @@ import CacheableImage from 'react-native-cacheable-image'
38
44
>
39
45
<CacheableImage
40
46
style={styles.nestedImage}
41
- source={require(./someImage.jpeg)}
47
+ source={require(./someImage.jpeg)}
48
+ defaultSource={{uri: 'http://www.foobar.com/defaultImage.jpeg'}}
42
49
/>
43
50
</CacheableImage>
44
51
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-cacheable-image" ,
3
- "version" : " 1.3.0 " ,
3
+ "version" : " 1.3.1 " ,
4
4
"description" : " An Image component for React Native that will cache itself to disk" ,
5
5
"main" : " image.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments