Computer Science, asked by fhayat66, 11 months ago

How to use react native gifted chat with cloud firestore?

Answers

Answered by Itzkrushika156
2

Explanation:

Requirements

Here is what you need before we can get started.

Computer

Ability to type

Building the App

To make a chat app we will need a few things:

A server to store all the messages

Screen to get the users name

Screen to send and receive messages

Let’s go at these 1-by-1 with Gifs to keep your attention.

Setting up a Server

is a scary task, especially if you are pretty. We will use a service called Firebase, it’s free, it’s scalable, it’s easy, and it’s made by Google.

Go to the Firebase console and setup a new app: https://console.firebase.google.com

Add a project.

Add some info

Go to the auth tab and click “Set up sign-in method”

Scroll down and click on “Anonymous”, we want to enable this

Enable and Save!

Time to Code!

Open the starter snack: https://snack.expo.io/@bacon/basic-chat-starter

This will have the files for our two screens and our data provider.

Similar questions