title: react native create element with string
body: <p>I see a lot people creating a route mapping in React native similar to the below:</p>
  
  <pre><code>if (route.id === 'Blah') {
      return  (&lt;Blah prop1={this.method} prop2={this.other method} /&gt;);
  } else if (route.id === 'OtherView') {
      return (&lt;OtherView prop1={this.method} /&gt;);
  }
  </code></pre>
  
  <p>this can quickly become many lines of code, I'd like to do something like this:</p>
  
  <pre><code>return (React.createElement(route.id, {propsToPass}));
  </code></pre>
  
  <p>This doesn't work in React Native as apparently 'strings are not allowed as the first parameter in React Native since those are meant to be used for html tags in regular React.'</p>
  
  <p>So how can this be done? I got it working if I supply a ReactClass as the first param, or with eval(route.id) (but I know that can be dangerous).</p>
  
  <p>How can I create a React Native element with a string?</p>