Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

aaronksaunders/ionic-react-hook-form-react-fire

Repository files navigation

ko-fi

ionic-react-hook-form-react-fire


NEW Updated Project 12/2025 SEE THIS REPOSITORY - https://github.com/aaronksaunders/ionic-react-reactfire-capacitor-app


Releases and tags coincide with specific blog posts in the series See Blog Series

Sample project motivated by video by David East on Reactfire

Saves The Following Data Structure

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;
};

Required

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;

Whats Next

  • Add Items Using Ionic Modal - Added on 7/31/200
  • Create Account - Added on 7/31/200
  • Delete Items using IonSlidingItem - Added on 8/16/200
  • Update Items - Added on 8/16/200
  • Reset Forms - Added on 8/16/200
  • Default Data in ReactHook Form - Added on 8/16/200

See Other Work On My YouTube Channel

AltStyle によって変換されたページ (->オリジナル) /