From 3d9845e1b35af0fe9ea67e9dfca95d3f7f3b53a7 Mon Sep 17 00:00:00 2001 From: Loewy Date: Sat, 27 Jan 2024 15:17:09 -0800 Subject: [PATCH] revert App.tsx --- App.tsx | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/App.tsx b/App.tsx index 63ac043..6a47ac6 100644 --- a/App.tsx +++ b/App.tsx @@ -1,26 +1,9 @@ -import React, { useEffect, useState } from "react"; -import { Alert, Text } from "react-native"; +import React from "react"; +import { Text } from "react-native"; import ClientProvider from "./graphql/client"; import ShotsContainer from "./component/shot"; -import auth, { FirebaseAuthTypes } from '@react-native-firebase/auth'; - - const App: React.FC = () => { - const testFirebaseAuth = async () => { - try { - // Attempt to sign in anonymously - const userCredential: FirebaseAuthTypes.UserCredential = await auth().signInAnonymously(); - console.log('Signed in anonymously, User:', userCredential.user); - } catch (error) { - console.error('Error with Firebase Auth:', error); - } - }; - - useEffect(() => { - testFirebaseAuth(); - }, []); - return (