revert App.tsx

This commit is contained in:
Loewy 2024-01-27 15:17:09 -08:00
parent 07118a870f
commit 3d9845e1b3

21
App.tsx
View File

@ -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 (
<ClientProvider>
<ShotsContainer />