Skip to content

Commit f452f94

Browse files
committed
Updated README and version to 1.3.1
1 parent 4ee9ebb commit f452f94

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ npm i react-native-cacheable-image --save
2929
## Usage
3030
import CacheableImage from 'react-native-cacheable-image'
3131

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+
3238
## Example
3339

3440
<CacheableImage
@@ -38,7 +44,8 @@ import CacheableImage from 'react-native-cacheable-image'
3844
>
3945
<CacheableImage
4046
style={styles.nestedImage}
41-
source={require(./someImage.jpeg)}
47+
source={require(./someImage.jpeg)}
48+
defaultSource={{uri: 'http://www.foobar.com/defaultImage.jpeg'}}
4249
/>
4350
</CacheableImage>
4451

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-cacheable-image",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"description": "An Image component for React Native that will cache itself to disk",
55
"main": "image.js",
66
"scripts": {

0 commit comments

Comments
 (0)