# Install Libs

If you have Homebrew installed, go to next step, else:&#x20;

```
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
```

Install node

```
$ brew install node
```

Install React Native CLI

```
$ npm install -g react-native-cli
```

Go to the project folder and install dependencies

```
$ cd PROJECT_DIR
$ npm install
```

Link native modules

```
$ react-native link
$ cd ios
$ pod install
```

{% hint style="info" %}
Useful doc <https://facebook.github.io/react-native/docs/getting-started>
{% endhint %}

Install Android SDK <http://www.androiddocs.com/sdk/installing/index.html>

Set `ANROID_HOME` on MAC <https://stackoverflow.com/questions/19986214/setting-android-home-enviromental-variable-on-mac-os-x>

Set `ANDROID_HOME` on Windows <https://www.360logica.com/blog/how-to-set-path-environmental-variable-for-sdk-in-windows/>

Run Android app

{% hint style="info" %}
Please connect android device or run emulator
{% endhint %}

```
$ react-native run-android
```

Run iOS app

{% hint style="info" %}
Please install Xcode <https://medium.com/@LondonAppBrewery/how-to-download-and-setup-xcode-10-for-ios-development-b63bed1865c>
{% endhint %}

It appears to be a problem with the location of `Command line tools`. In Xcode, select Xcode menu, then Preferences, then Locations tab. Select your Xcode version from the dropdown and exit Xcode.

```
$ react-native run-ios
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jaah.gitbook.io/webpro/master.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
