A React-Native (Mobile) project
To run it, first install expo via the Command Line via:
Dependencies, run:
npm install --save @react-native-community/netinfo @types/react-native-keyboard-spacer expo-image-picker expo-location expo-permissions firebase prop-types react react-dom react-native react-native-gesture-handler react-native-gifted-chat react-native-keyboard-spacer react-native-maps react-native-web react-navigation react-navigation-stack
In the project-folder, start the app:
This will launch your default browser via Expo. If you have already installed the mobile Expo Client App, you can run it on a Smartphone and/or an emulator by either scanning the QR code. Alternatively, if you have already created and signed into your Expo account, you can replicate an iOS Smartphone environment in a browser.
For Android-OS development, visit this page. Note, you can also "Run on Android device/emulator" via the Expo page which previously opened in your browser. However, for a more realistic Android-OS development environment, downloading and installing the Android Studio is required.
For storage, set up Firebase account by following these steps:
-
Go here
-
Sign into your Google account
-
Click, "Go to console"
-
Click, "Add project"
-
Follow the onscreen instructions by "Creating your project"
-
Click, "Database" on the Develop tab
-
Click, "Create Database" and then, Select, "Start in test mode"
-
Click, "Start collection" and then, Name "Messages" (a possible default suggestion) and then, Select "Auto ID" and, confirm via the following screen
-
Click, Authentication" and, "Set up Sign-in Method" and, enable anonymous authentication
-
Click, "Storage" to set up Cloud Storage
-
Last, Click, Gear (above the Develop tab) and, Select "Project Settings". Click, (towards the) button of the page, Add Firebase to a web app, name and copy all of the text in the firebaseConfig and paste into the Chat.js file.
-
As a back-up, keep the firebaseConfig code in a safe place for reference.
-
The firebaseConfig code for this project cannot be duplicated or re-used for the database storage!
Note: Keep in mind, Firebase sets a one-month limitation on their trial-version before requiring the user's account-status to be changed!