Skip to content

App for mobile devices built using React Native. App provides users with chat interface and possibility to share images and location.

Notifications You must be signed in to change notification settings

evagrean/chat-app

Repository files navigation

Native Mobile Chat App

This is a chat app for mobile devices built with React-Native. It provides users with a chat interface where they can send/receive text messages and images as well as share their location. It was the final project for my full-stack web development bootcamp.

Demo

Watch video

Prerequisites

  • Install Expo: npm install expo-cli -g

  • For Windows and Linux: Install Android Studio.
    For more information how to set up an emulator, look here

  • For Mac: Install XCode

  • Install the Expo app on your mobile device (available in Google Play Store and Apple Store)

Getting started

  • To install all the dependencies: npm i

  • To start the app: expo/npm start

  • Launch app on physical device: scan QR code in Expo GUI

  • Launch app on emulator: Press "Run on Android device/emulator in Expo GUI

Built with

Database information

This project uses Google Firebase/Firestore for data storage.
If you get stuck at any point,check the Firebase documentation

Set up Firestore for your React Native project

  1. Sign in, then click on "Go to console" link

  2. Choose to start in test mode, so we don't need to create any security rules

  3. Install Firestore via Firebase in your project: npm install firebase

  4. Import Firestore in your App.js file

const firebase = require('firebase');
require ('firebase/firestore');
  1. Back in the Firestore project in your browser, open up "Settings", then "General" tab. Under the section "Your apps" you can generate configurations for different platforms. Here, click "Firestore for Web". Copy the contents of the config object.

  2. In your Chat.js file create a constructor in the App class. Here you can paste the data you copied from config object.

Example

firebase.initializeApp({

apiKey: "your-api-key", authDomain: "your-authdomain", databaseURL: "your-database-url", projectId: "your-project-id", storageBucket: "your-storage-bucket", messagingSenderId: "your-messaging-sender-id", appId: "your-app-id" });

Note: You'd need to copy the configuration info from your own Firstore database!

  1. Create a reference to the Firestore collection:
this.referenceMessages = firebase.firestore().collection('chat');`

Links

Kanban board

About

App for mobile devices built using React Native. App provides users with chat interface and possibility to share images and location.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published