Removed analytics as it is not supported in React Native.
This commit is contained in:
@@ -6,7 +6,7 @@ import {
|
||||
selectBodyshop,
|
||||
selectCurrentUser,
|
||||
} from "../redux/user/user.selectors";
|
||||
import { emailSignInStart } from "../redux/user/user.actions";
|
||||
import { emailSignInStart, signOutStart } from "../redux/user/user.actions";
|
||||
import { connect } from "react-redux";
|
||||
|
||||
const mapStateToProps = createStructuredSelector({
|
||||
@@ -17,9 +17,15 @@ const mapStateToProps = createStructuredSelector({
|
||||
const mapDispatchToProps = (dispatch) => ({
|
||||
emailSignInStart: (email, password) =>
|
||||
dispatch(emailSignInStart({ email, password })),
|
||||
signOutStart: () => dispatch(signOutStart()),
|
||||
});
|
||||
|
||||
export function SignIn({ bodyshop, currentUser, emailSignInStart }) {
|
||||
export function SignIn({
|
||||
bodyshop,
|
||||
currentUser,
|
||||
emailSignInStart,
|
||||
signOutStart,
|
||||
}) {
|
||||
return (
|
||||
<View>
|
||||
<Text>The secondary view</Text>
|
||||
@@ -29,6 +35,7 @@ export function SignIn({ bodyshop, currentUser, emailSignInStart }) {
|
||||
title="Sign In"
|
||||
onPress={() => emailSignInStart("patrick@imex.dev", "patrick")}
|
||||
/>
|
||||
<Button title="Sign Out" onPress={() => signOutStart()} />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ import firebase from "firebase/app";
|
||||
import "firebase/firestore";
|
||||
import "firebase/auth";
|
||||
import "firebase/database";
|
||||
import "firebase/analytics";
|
||||
//import "firebase/analytics";
|
||||
//import "firebase/messaging";
|
||||
import { store } from "../redux/store";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user