From 80742a449386c6b8f76c3bff1c1500ee4b4a1d8f Mon Sep 17 00:00:00 2001 From: AnimatorJoe Date: Fri, 29 Oct 2021 16:47:54 -0700 Subject: [PATCH 1/3] lmfao --- app.json | 2 +- screens/AuthenticationScreen.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app.json b/app.json index 7f3ad58..85c361b 100644 --- a/app.json +++ b/app.json @@ -44,7 +44,7 @@ "favicon": "./assets/favicon.png" }, "extra": { - "requireAuth": false + "requireAuth": true } } } diff --git a/screens/AuthenticationScreen.js b/screens/AuthenticationScreen.js index ac86912..9716e10 100644 --- a/screens/AuthenticationScreen.js +++ b/screens/AuthenticationScreen.js @@ -6,6 +6,7 @@ import { Button } from "react-native-paper"; import { Platform } from "react-native"; import * as firebase from "firebase"; +import { getAuth, signInAnonymously } from "firebase/auth"; import * as GoogleSignIn from "expo-google-sign-in"; import { LinearGradient } from "expo-linear-gradient"; import TypeWriter from "react-native-typewriter"; @@ -136,7 +137,8 @@ const AuthenticationScreen = props => { disabled={!request} style={{ display: "flex", flexDirection: "column" }} onPress={() => { - login(); + // login(); + firebase.auth().signInAnonymously(); }} > From 2b1c9c609434568393bbb1f3cc843906d8516f9d Mon Sep 17 00:00:00 2001 From: Joseph Jin Date: Fri, 7 Jan 2022 11:42:20 -0600 Subject: [PATCH 2/3] removing non-anon auth requirement --- components/SearchbarComponent.js | 2 +- screens/AuthenticationScreen.js | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/components/SearchbarComponent.js b/components/SearchbarComponent.js index daab989..41faa77 100644 --- a/components/SearchbarComponent.js +++ b/components/SearchbarComponent.js @@ -39,7 +39,7 @@ const SearchbarComponent = ({ size={23} onPress={onSettingsPress} /> - {Constants.manifest.extra.requireAuth && + {false && { From a789578af816978a4b83f58bde786cea78955826 Mon Sep 17 00:00:00 2001 From: Joseph Jin Date: Fri, 7 Jan 2022 11:46:20 -0600 Subject: [PATCH 3/3] button lol --- screens/AuthenticationScreen.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/screens/AuthenticationScreen.js b/screens/AuthenticationScreen.js index 1a6d5cf..983f9d4 100644 --- a/screens/AuthenticationScreen.js +++ b/screens/AuthenticationScreen.js @@ -2,7 +2,7 @@ import React, { useEffect, useState } from "react"; import * as WebBrowser from "expo-web-browser"; import * as Google from "expo-auth-session/providers/google"; import { StyleSheet, View, Text, Image } from "react-native"; -import { Button } from "react-native-paper"; +import { Colors, Button } from "react-native-paper"; import { Platform } from "react-native"; import * as firebase from "firebase"; @@ -141,7 +141,7 @@ const AuthenticationScreen = props => { icon={"walk"} disabled={!request} style={{ display: "flex", flexDirection: "column" }} - labelStyle={{ color: "grey900" }} + labelStyle={{ color: Colors.grey700 }} onPress={() => { firebase.auth().signInAnonymously(); }} @@ -183,7 +183,7 @@ const AuthenticationScreen = props => { - Copyright © 2021 Stroll, All rights reserved. + Copyright © 2022 Stroll, All rights reserved.