Skip to content

Commit f6f4941

Browse files
committed
Updated example app with new defaultSource prop
1 parent 2ad8cb5 commit f6f4941

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

example/App.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class MyFirebaseImageView extends Component {
1111
<ImageView
1212
{...imageProps}
1313
path='images/firebase_logo.png'
14+
defaultSource={require('./assets/placeholder.png')}
1415
timestamp={1000} //optional, can be used to specify last modified time for same storage path
1516
resizeMode='cover' //'cover', 'contain', 'stretch'
1617
/>
@@ -27,6 +28,7 @@ class MyFirebasePhotoView extends Component {
2728
<PhotoView
2829
{...imageProps}
2930
path='images/firebase_logo.png'
31+
defaultSource={require('./assets/placeholder.png')}
3032
timestamp={1000} //optional, can be used to specify last modified time for same storage path
3133
resizeMode='cover' //'cover', 'contain', 'stretch'
3234
/>

example/assets/placeholder.png

6.03 KB
Loading

0 commit comments

Comments
 (0)