Our first React Native implementation is ReactKit, targeting iOS. We are also
working on an Android implementation which we will release later. ReactKit
apps are built using the React JS framework, and render directly to
native UIKit elements using a fully asynchronous architecture. There is no
browser and no HTML. We have picked what we think is the best set of features
from these and other technologies to build what we hope to become the best
product development framework available, with an emphasis on iteration speed,
developer delight, continuity of technology, and absolutely beautiful and fast
products with no compromises in quality or capability.
brew install nodebrew install watchmanbrew install flowGet up and running with our Movies sample app:
Once you have the repo cloned and met all the requirements above, start the packager that will transform your JS code on-the-fly:
Examples/Movies/Movies.xcodeproj project in Xcode.Movies and that you have an iOS simulator
selected to run the app.You should now see the Movies app running on your iOS simulator. Congratulations! You've just successfully run your first React Native app.
Now try editing a JavaScript file and viewing your changes. Let's change the movie search placeholder text:
Examples/Movies/SearchScreen.js file in your favorite JavaScript
editor.Feel free to browse the Movies sample files and customize various properties to get familiar with the codebase and React Native.
Also check out the UI Component Explorer for more sample code:
Examples/UIExplorer/UIExplorer.xcodeproj. Make sure to close the Movies
project first - Xcode will break if you have two projects open that reference
the same library.
npm start fails with log spew like:brew install watchman should fix the issue.Please report any other issues you encounter so we can fix them ASAP.