Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

firebase install

# Using npm
npm install --save @react-native-firebase/app

# Using Yarn
yarn add @react-native-firebase/app
Comment

firebase setUp

import firebase from 'firebase/compat/app';
import 'firebase/compat/auth';
import 'firebase/compat/firestore';

const firebaseConfig = { // Have the firebase config here
  apiKey: "",
  authDomain: "",
  projectId: "",
  storageBucket: "",
  messagingSenderId: "",
  appId: "",
  measurementId: ""
};

// Use this to initialize the firebase App
const firebaseApp = firebase.initializeApp(firebaseConfig);

// Use these for db & auth
const db = firebaseApp.firestore();
const auth = firebase.auth();

export { auth, db };
Comment

PREVIOUS NEXT
Code Example
Shell :: create new repo 
Shell :: bat cd to directory 
Shell :: docker rmi dangling=true 
Shell :: create usb install windows 10 on ubuntu 
Shell :: check gcc version in ubuntu 
Shell :: run sh with parameter 
Shell :: php extension php.ini 
Shell :: ufw add rule with comment 
Shell :: pm2 status 
Shell :: big sur ERROR: Error installing ffi: ERROR: Failed to build gem native extension. 
Shell :: Cannot find cairo.h! Please install cairo 
Shell :: cp linux command with progress bar 
Shell :: linux find where file is mounted 
Shell :: echo new line 
Shell :: how to uninstall npm package 
Shell :: check active ssh users in linux 
Shell :: how to clone a specific branch from github that you are not working 
Shell :: how to see staged files in git 
Shell :: git push remote 
Shell :: grep a port in mac 
Shell :: linux script to clean up log files in /var/log 
Shell :: how to see hidden files in terminal mac 
Shell :: restart odoo service ubuntu 
Shell :: how to create permanent alias in linux 
Shell :: ubuntu kill service 
Shell :: git commit specific files 
Shell :: keytool export a certificate 
Shell :: undo most recent commit 
Shell :: windows open browser from command line 
Shell :: run bash script linux with sudo password 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =