# Start

This is a multi-platform map SDK based on React Native. The functions of the SDK are largely composed of map, search, and route planning related operations. The map function can control the map layers, settings, and operation. To use "react-native-fatos-sdk", you must request an SDK key and then apply that key to the source. If you want an SDK key, please go to [https://nostramap-console.fatos.biz/](https://nostramap-console.fatos.biz) and request an SDK key after sign up.

Please let us know if you have any technical problems using our SDK\
Contact : <sales@fatoscorp.com>

## Development Environment

### Install our SDK with npm

```bash
react-native init "project name"
npm i react-native-fatos-sdk
```

In order to use Fatos SDK, you must use your SDK key on your project.\
For Android project, add your key to \[string.xml] file.\
For iOS project, add your key to \[info.plist] file.

### How to run example projects

For you to have a better understanding of our SDK, we included a small example project for Android and iOS. Once you install our SDK, you can run our example projects as follow:

{% tabs %}
{% tab title="Android" %}

1. Go to your Android project folder and navigate to /node\_modules/react-native-fatos-sdk/example
2. Open Android project in example name folder with Android Studio and Press the 'Refactor'(top of android studio menu)
3. Select 'Migrate to AndroidX'
4. Migrate the UI library used in the project to AndroidX-based. If build error occurs after migration, AndroidX must be manually applied.

![](https://github.com/devfatoscorp/react-native-fatos-sdk/raw/master/assets/img3.png)
{% endtab %}

{% tab title="iOS" %}

1. Go to your iOS project folder and navigate to /node\_modules/react-native-fatos-sdk/example
2. Run following commands in order

```bash
rm -rf "${HOME}/Library/Caches/CocoaPods"
rm -rf "pwd/Pods/"
pod update
```

1. Add ResFatos.bundle so that Bundle Resources to be copied

![](https://github.com/devfatoscorp/react-native-fatos-sdk/raw/master/assets/img4.png)
{% endtab %}
{% endtabs %}

Once either of Android or iOS project setting is done, you can run the application with following commands

```bash
react-native run-ios
react-native run-android
```


---

# 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://nostramap-doc.fatos.biz/fatos-sdk/platform/react/start.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.
