Skip to content

💬 A messaging app that uses React Native, Expo, and Firebase Authentication and Database.

Notifications You must be signed in to change notification settings

AshishA26/Messaging_App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Messaging_App

A messaging app that uses React Native, Expo, and Firebase Authentication and Database. It is hosted on github pages at ashisha26.github.io/Messaging_App/.

Apk is available here or in the releases page of this repo.

Image1

Image2

Environment Setup

  • On Windows, use the Anaconda prompt.
  • Useful VS Code extension: ES7+ React/Redux/React-Native snippets
conda create --name messaging_app 
conda activate messaging_app
conda install conda-forge::nodejs=20.9
npm install
npm install -g firebase-tools
npm install -g eas-cli
npm install -g @expo/ngrok@^4.1.0
npm install -g yarn
eas login
firebase login
yarn install # For Expo Android build

Running

  • npm start: Start app using expo. Can then select Android or Web
  • npm run android: Directly start it on the Android emulator.
  • npm run remote_android: Run Expo app via public URL, for Android device on a different network

Deploying

Building the app as a SPA is automatically handled when deploying through the npm scripts.

Deploying locally

  • npm run deploy_local

Deploying to Github Pages

  • Add the following to app.json inside the "expo" object.
    "experiments": {
      "baseUrl": "/Messaging_App"
    },
  • npm deploy_github

Deploying to Firebase hosting

  • npm run deploy_firebase

Building APK

eas update:configure
eas build:configure
eas build -p android --profile preview

Notes

Expo Go App

  • Login into eas in cli, and on Android's Expo App.
  • In order for it to work on Android on expo go, you need to either have the laptop and phone on the same wifi network, or use tunnelling. Then scan the QR code.
  • npm run remote_android if Android and Laptop are not on the same network

Android Emulator

  • Run Android Emulator through Android Studio
  • Run npm start, then press a.
  • may need npx expo install --fix

Firebase Setup

firebase init
# Select "Hosting" option, and use these settings:
#? What do you want to use as your public directory? dist
#? Configure as a single-page app (rewrite all urls to /index.html)? Yes
#? Set up automatic builds and deploys with GitHub? No

Issues

  • icons don't work when hosted in firebase

Links: