# Prerequisites

**React Native (enable you to write android and ios native apps):**

o   Please follow the Facebook ‘getting started’ post, it is straightforward and clear

<https://facebook.github.io/react-native/docs/getting-started.html>

And also make sure that you have Node.js and NPM installed

<https://nodejs.org/en/>

o   Also install the React Native CLI by running this command:

npm install –g react-native-cli

o   Run this command to create your project:

react-native init \<your-project-name>          &#x20;

o   Navigate to your newly created project

cd \<your-project-name>

Firebase (enable you to run a real-time database and receive push notifications):

o   Create Firebase Account

o   Then create a firebase Project by following this tutorial- <https://rnfirebase.io/docs/v4.0.x/installation/initial-setup#Creating-a-new-project>

o   After you download your google-services.json file, place this file in the root of your project at \~ `android/app/google-services.json`. which includes your firebase credentials and configurations

o    Open Your database in firebase and go to rules and copy and replace your firebase rules with:

&#x20;{

&#x20; "rules": {

&#x20;   "users": {

&#x20;     ".read": true,

&#x20;     ".write": "auth != null"

&#x20;   },

&#x20;   "bookings": {

&#x20;     ".read": true,

&#x20;     ".write": true

&#x20;   },

&#x20;   "messages": {

&#x20;     ".read": true,

&#x20;     ".write": true

&#x20;   },

&#x20;   ".read": "auth != null",//allow reading of files

&#x20;   ".write": "auth != null"

&#x20; }

}

To release a signed app to publish on Google play follow this tutorial:

<https://facebook.github.io/react-native/docs/signed-apk-android.html>


---

# 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://bestcowed.gitbook.io/snappreneur/untitled.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.
