Skip to content

Commit

Permalink
Add defaultSource example
Browse files Browse the repository at this point in the history
Summary: Closes facebook#5074

Reviewed By: svcscm

Differential Revision: D2798023

Pulled By: nicklockwood

fb-gh-sync-id: d8aa87bf8dcbecf53b341d5914bbe3354cc753aa
  • Loading branch information
brentvatne authored and facebook-github-bot-7 committed Feb 1, 2016
1 parent 80a2f5d commit cb2eeb4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Examples/UIExplorer/ImageExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,20 @@ exports.examples = [
},
platform: 'ios',
},
{
title: 'defaultSource',
description: 'Show a placeholder image when a network image is loading',
render: function() {
return (
<Image
defaultSource={require('./bunny.png')}
source={{uri: 'http://facebook.github.io/origami/public/images/birds.jpg'}}
style={styles.base}
/>
);
},
platform: 'ios',
},
{
title: 'Border Color',
render: function() {
Expand Down

0 comments on commit cb2eeb4

Please sign in to comment.