Releases and tags coincide with specific blog posts in the series See Blog Series
Sample project motivated by video by David East on Reactfire
<AuthCheck/>
component for cleaner routing when not logged in, See App.tsx
I am starting to integrated typescript into my examples since I am seeing questions about types popping up in the forums. The IModalData
is the structure of the data that is written to firebase
type IModalData = {
podcastName: string;
podcastHost: string;
podcastURL: string;
};
export type IModalResponse = {
hasData: boolean;
data?: IModalData;
};
you must create a file called src/env.js
and add the following code
export const FIREBASE_CONFIG = {
// YOUR FIREBASE CONFIGURATION
};
// NAME OF COLLECTION IN FIREBASE TO LIST
export const FIREBASE_COLLECTION_NAME = "podcast-favs"
// THIS IS REQUIRED FOR ANDROID
// SEE - https://github.com/FirebaseExtended/reactfire/issues/228
global.globalThis = window;