Skip to content

Commit 2ad8cb5

Browse files
committed
Added defaultSource prop documentation to README
1 parent 0f076f2 commit 2ad8cb5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export class MyFirebaseImageView extends Component<void, void, void> {
7575
<ImageView
7676
{...imageProps}
7777
path='firebase/storage/path'
78+
defaultSource={require('./placeholder.png')} // optional, show placeholder until image is loaded
7879
timestamp={0} //optional, can be used to specify last modified time for same storage path
7980
resizeMode='cover' //'cover', 'contain', 'stretch'
8081
/>
@@ -95,10 +96,13 @@ export class MyFirebasePhotoView extends Component<void, void, void> {
9596
<PhotoView
9697
{...imageProps}
9798
path='firebase/storage/path'
99+
defaultSource={require('./placeholder.png')} // optional, show placeholder until image is loaded
98100
timestamp={0} //optional, can be used to specify last modified time for same storage path
99101
resizeMode='cover' //'cover', 'contain', 'stretch'
100102
/>
101103
)
102104
}
103105
}
104106
```
107+
108+
> Note: On Android, the `defaultSource` prop is ignored on debug builds.

0 commit comments

Comments
 (0)