Hi Team
I need some help on minor issue, how i have register my app on firebase console. How do i create firebase database to be able to connect to my application on React-native VS Code? Show me some examples maybe some steps, then rest i will be able to pick it up quickly.

Tuhin PaulRank #7 · 71.9K reputationPosted Apr 11, 2023, 11:55 AM EDT
Sample code to connect to a Firebase database from a React Native app using the Firebase SDK for JavaScript -
import firebase from 'firebase/app'; import 'firebase/database'; const firebaseConfig = { // Your Firebase configuration object goes here }; firebase.initializeApp(firebaseConfig); const database = firebase.database(); // Example of how to read data from your database database.ref('/users').once('value').then((snapshot) => { const users = snapshot.val(); console.log(users); }); // Example of how to write data to your database database.ref('/users').push({ name: 'John Doe', email: '[email protected]', });Tuhin PaulRank #7 · 71.9K reputationPosted Apr 11, 2023, 11:57 AM EDT
Step1: Go to the Firebase console (https://console.firebase.google.com/) and create a new project.
Step2: Register your app , select the "Web" option.
Step3: Follow the instructions to register your app, which will involve providing a nickname for your app and registering the app's package name.
Step4: After registering your app, you will be provided with a Firebase configuration object that contains the API keys and other configuration details that you will need to use Firebase in your React Native app.
Step5: To create a Firebase database, click on the "Database" tab in the Firebase console and select the "Realtime Database" option.
Step6: Follow the instructions to set up your database, which will involve selecting a location and setting security rules for your database.
Step7: Once your database is set up, you can use the Firebase SDK for JavaScript to connect to your database from your React Native app.