title: How to require an icon from the res folder in react native?
body: <p>I'm using a ToolbarAndroid component on my react native project. I would like to know how to require an icon, such as the "ic_launcher.png",  from the "projectFolder/android/app/source/main/res/**" directories. I think React Native knows which icon is most appropriate to use. I don't want to use any font library such as "react-native-vector-icons".</p>
  
  <p>Appreciate any help.</p>
  
  <p>My code <strong>Toolbar.js</strong>:</p>
  
  <pre><code>import React, { Component } from 'react';
  
  import {
    ToolbarAndroid
  } from 'react-native';
  
  const Toolbar = () =&gt; (
    &lt;ToolbarAndroid
      logo={require('./ic_launcher.png')}
      title="AwesomeApp"
      actions={[
        {
          title: 'Settings',
          icon: require('./ic_launcher.png'),
          show: 'always'
        }]}
    /&gt;
  );
  
  export default Toolbar;
  </code></pre>