Kodeco Forums

React Native Tutorial: Building Apps with JavaScript

React Native by Facebook is an open-source framework allowing you to build fully native iOS and Android apps in JavaScript. Learn how in this tutorial.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/1909-react-native-tutorial-building-apps-with-javascript

Thank you for this super awesome tutorial!!! Building a mobile app couldn’t be simpler. It would be immensely helpful if it included the steps to deploy to Android as well as a standalone web page. Thanks again!!!

I need to change path of index.android.js, By default it access the file from root of project created (created by react native), I want to put it in asset folder of android structure.

Hi! The tutorial is really great, but I’ve tumbled into an issue I can’t seem to find a solution to.
After creating and setting up SearchResult.js (the part of the tutorial the data from the api is shown for the first time, without any styling) when running the app I get a set of errors.

  1. React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components). Check the render method of ‘StaticRenderer’.
  2. Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. Check the render method of ‘StaticRenderer’.
  3. Unhandled JS Exception: Element type is invalid: expected a string (for built-in components) or a class/funcion (for composite components) but got: undefined. Check the render method of ‘StaticRenderer’.
  4. (This exception seems to be fired infinitely) Cannot adjust current top of stack beyond available views.

It seems to be a problem from the render method in SearchResults but I’ve checked about a dozen times for typos or sintax and even copy and paste your own source files, and the same keeps happening. Any idea what might be going on?