snappreneur
  • Introduction
  • Quick Start Guide
  • Introduction
  • Features
  • Setting Up the environment (Critical)
  • Prerequisites
  • Customization and Installation
  • Push Notifications and Firebase Cloud Functions
  • Final Steps
  • Auxiliary Service
Powered by GitBook
On this page

Prerequisites

PreviousSetting Up the environment (Critical)NextCustomization and Installation

Last updated 7 years ago

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

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

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

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>

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-

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:

{

"rules": {

"users": {

".read": true,

".write": "auth != null"

},

"bookings": {

".read": true,

".write": true

},

"messages": {

".read": true,

".write": true

},

".read": "auth != null",//allow reading of files

".write": "auth != null"

}

}

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

https://facebook.github.io/react-native/docs/getting-started.html
https://nodejs.org/en/
https://rnfirebase.io/docs/v4.0.x/installation/initial-setup#Creating-a-new-project
https://facebook.github.io/react-native/docs/signed-apk-android.html