Add intro explaining embedding React in existing app

This commit is contained in:
Andrew Sardone 2015-03-31 16:19:45 -04:00
parent b82de1e0d4
commit cfba63edd4
1 changed files with 8 additions and 3 deletions

View File

@ -7,7 +7,14 @@ permalink: docs/embeded-app.html
next: activityindicatorios
---
## Install React Native Using CocoaPods
Since React makes no assumptions about the rest of your technology stack its commonly noted as simply the `V` in `MVC` its easily embeddable within an existing non-React Native app. In fact, it integrates with other best practice community tools like [Cocoapods](http://cocoapods.org/).
## Requirements
- [Cocoapods](http://cocoapods.org/) `gem install cocoapods`
- [Node.js](http://nodejs.org) `brew install node`
## Install React Native Using Cocoapods
[CocoaPods](http://cocoapods.org/) is a package management tool for iOS/Mac development. We need to use it to download React Native. If you haven't install CocoaPods yet, checkout [this tutorial](http://guides.cocoapods.org/using/getting-started.html).
@ -27,8 +34,6 @@ Then install pods via shell
$ pod install --verbose
```
The installation process also requires [Node.js](http://nodejs.org).
## Create Your React Native App
First, enter React Native's pod root directory and create **index.ios.js** inside a directory `ReactComponent`.