React: Cross-Platform Application Development with React Native by Emilio Rodriguez Martinez

React: Cross-Platform Application Development with React Native by Emilio Rodriguez Martinez

Author:Emilio Rodriguez Martinez
Language: eng
Format: epub
Publisher: Packt Publishing


Once the project is set up, we can start taking a look at how our database is going to be structured.

Real-Time Database

Firebase allows mobile developers to store and sync data between users and devices in real time using a cloud-hosted, NoSQL database. Updated data syncs across connected devices in milliseconds and data remains available if your app goes offline, providing a great user experience regardless of network connectivity.

Three data models come into the picture when thinking about the basic data a one-to-one communication app should handle:

users: This will store avatars, names, and push notification tokens. There is no need to store authentication data here as it is handled through a different Firebase API (authentication API).

messages: We will save each message on each chat room separately for easy retrieval using the chat room ID as a key.

chats: All the information about the opened chats will be stored here.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.