title: react native: How to set Image defaultSource on Android
body: <p>react native: How to set Image defaultSource on Android.</p>
  
  <p>I have read the <code>React native</code> 1.58 document. I found the Image props <code>defaultSource</code>  supported iOS only.</p>
  
  <p>I need to set the default Image when the network Image load error.</p>
  
  <p>I used to write the code like this: </p>
  
  <pre><code>{ ImageUrl?
                  &lt;Image style={styles.docimg}
                         source={{uri: ImageUrl}}/&gt;
                    :
                  &lt;Image style={styles.docimg}
                         source={require('../../../resource/default.png')}/&gt;
                }
  </code></pre>
  
  <p>Now there is a problem. When the URL is a string type, but it isn't a correct network Image. As the URL is <code>true</code> then the Image will show nothing. </p>
  
  <p>I saw the Image props <code>onError</code> maybe solve my issue. </p>
  
  <p>I need to set the placeholder Image.</p>