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 PaulPosted Apr 11, 2023, 3:57 PM
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.
Tuhin PaulPosted Apr 11, 2023, 3:55 PM
Sample code to connect to a Firebase database from a React Native app using the Firebase SDK for JavaScript -