How to use the react-redux-firebase.withFirebase function in react-redux-firebase

To help you get started, we’ve selected a few react-redux-firebase examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nwplus / nwhacks2019 / web / components / auth / Logout / Logout.js View on Github external
return { firebase };
};

const mapDispatchToProps = (dispatch) => {
  return {
    // https://www.npmjs.com/package/redux-reset
    resetState: () => {
      dispatch({ type: 'RESET' });
    },
  };
};

export default compose(
  firebaseConnect(),
  connect(mapStateToProps, mapDispatchToProps),
)(withFirebase(Logout));
github prescottprue / react-redux-firebase / examples / complete / material / src / routes / Recover / containers / RecoverContainer.js View on Github external
this.setState({ message: null })}
        />
      
    )
  }
}

RecoverContainer.propTypes = {
  firebase: PropTypes.object.isRequired
}

export default withFirebase(RecoverContainer)
github nwplus / nwhacks2019 / web / containers / application / Volunteer / Volunteer.js View on Github external
volunteerApplication: propTypesTemplates.application.hacker,
  changePage: PropTypes.func.isRequired,
  changeLastActiveIndex: PropTypes.func.isRequired,
  activeIndex: PropTypes.number.isRequired,
  lastValidIndex: PropTypes.number.isRequired,
  updateApplication: PropTypes.func.isRequired,
  cancelApplication: PropTypes.func.isRequired,
  resetApplicationUI: PropTypes.func.isRequired,
  featureFlags: PropTypes.object.isRequired,
  firebase: PropTypes.object,
};

export default connect(
  mapStateToProps,
  mapDispatchToProps
)(withFirebase(VolunteerApplicationContainer));
github nwplus / nwhacks2019 / web / components / rsvp / index.js View on Github external
});
            }}
          />
          {submitFailed ? (<p>Failed to submit application, please try again!</p>) : null}
        
      
    );
  }
}

RSVP.propTypes = {
  firebase: PropTypes.object.isRequired,
  match: PropTypes.object.isRequired,
};

export default withFirebase(RSVP);
github nwplus / nwhacks2019 / web / containers / application / hacker / Hacker.js View on Github external
hackerApplication: propTypesTemplates.application.hacker,
  changePage: PropTypes.func.isRequired,
  changeLastActiveIndex: PropTypes.func.isRequired,
  activeIndex: PropTypes.number.isRequired,
  lastValidIndex: PropTypes.number.isRequired,
  updateApplication: PropTypes.func.isRequired,
  cancelApplication: PropTypes.func.isRequired,
  resetApplicationUI: PropTypes.func.isRequired,
  featureFlags: PropTypes.object.isRequired,
  firebase: PropTypes.object,
};

export default connect(
  mapStateToProps,
  mapDispatchToProps
)(withFirebase(HackerApplicationContainer));
github elliotBraem / CupSave / src / screens / Password.js View on Github external
/&gt;
          
        
      
    );
  }
}

export default withFirebase(PasswordScreen);
github nwplus / nwhacks2019 / web / components / rsvp / volunteer / index.js View on Github external
});
            }}
          /&gt;
          {submitFailed ? (<p>Failed to submit application, please try again!</p>) : null}
        
      
    );
  }
}

volunteerRSVP.propTypes = {
  firebase: PropTypes.object.isRequired,
  match: PropTypes.object.isRequired,
};

export default withFirebase(volunteerRSVP);
github elliotBraem / CupSave / src / screens / Loading.js View on Github external
firebase.auth().onAuthStateChanged(user =&gt; {
      navigation.navigate(user ? 'App' : 'Auth');
    });
  }

  render() {
    return (
      
    );
  }
}

export default withFirebase(LoadingScreen);