title: Export custom class or function in React-Native
body: <p>how to export and use your custom made class or function in React-Native?</p>
  
  <p>i have created a file named "<strong>customdata.js</strong>", which contains a function that returns array data. When i import a function from that file, i can't retrieve a returned value. it only returns [Function: function-name] in a console log</p>
  
  <p>Here is my code below:</p>
  
  <p><strong>customdata.js</strong></p>
  
  <pre><code>export function clienList(){
    let clients = [
      'D4 Soweto',
      'Road Freight Provident Fund',
      'Internal Cafe'
    ];
    return clients;
  }
  </code></pre>
  
  <p><strong>row.js</strong></p>
  
  <pre><code>//import from customdata
  import {clienList} from './customdata';
  
  //ListView
  const elems = ['something'];
  const source = new ListView.DataSource({
                     rowHasChanged: (r1, r2) =&gt; r1 !== r2
                  });
  
  export default class Row extends React.Component{
    constructor(props){
      super(props);
      this.state = {
        dataSource: source.cloneWithRows(elems),
        pickerValue:'Sonke'
      };
    };
    render() {
      console.log(clienList);
  </code></pre>
  
  <p><strong>My console log</strong></p>
  
  <p>02-20 12:21:30.853  2844  3730 I ReactNativeJS: [Function: clienList]</p>