title: Use modular define pattern in react-native
body: <p>I have some web app modules (which i treat as object classes), I would like to reuse them in react-native.</p>
  
  <p>However <strong>define</strong> doesn't work. I tried <strong>amdefine</strong> but got nowhere with that. 
  The error I get is <em>"define is undefined"</em>. Any ideas?</p>
  
  <p>An example:</p>
  
  <p>THE CALLER (index.ios.js):</p>
  
  <pre><code>var React = require('react-native');
  var ExampleClass = require('./app/ExampleClass');
  ....
  </code></pre>
  
  <p>THE DEFINITION:</p>
  
  <pre><code>define('ExampleClass', [
      // imports
      'ParentClass',
      'ExampleImport',
      'ExampleImport2',
  ], function(ParentClass, ExampleImport, ExampleImport2) {
  
      /**
       * @class ExampleClass
       */
      var ExampleClass = ParentClass.extend('ExampleClass');
  
      ExampleClass.prototype.init = function() {
          ParentClass.prototype.init.call(this);
          var oExampleImport = new ExampleImport();
          oExampleImport.doStuff();
      };
  
  
      ExampleClass.prototype.doSomething = function(oData, oStatus) {
         .....
         var oExampleImport2 = new ExampleImport2();
         oExampleImport2.doMoreStuff();
      };
  
      return ExampleClass;
  });
  </code></pre>