Coder Social home page Coder Social logo

aaronksaunders / ionic-react-hook-form-react-fire Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 1.0 679 KB

Java 4.60% Swift 10.44% Ruby 1.51% HTML 2.40% TypeScript 74.16% CSS 6.89%
ionic-framework react reactjs reactfire authentication firebase-auth firebase react-hook-form typescript ionicframework

ionic-react-hook-form-react-fire's Introduction

ko-fi

ionic-react-hook-form-react-fire

Last Updated 8/16/2020

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

ionic-react-hook-form-react-fire's People

Contributors

aaronksaunders avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

sugit-demo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.