> For the complete documentation index, see [llms.txt](https://bestcowed.gitbook.io/snappreneur/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bestcowed.gitbook.io/snappreneur/untitled.md).

# 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>
