This commit is contained in:
Loewy 2024-02-06 13:03:44 -08:00
parent c1ba1ceb7c
commit 71a5f72381
2 changed files with 7 additions and 3 deletions

View File

@ -2,8 +2,8 @@ import React, { useEffect } from "react";
import { ClientProvider, useAuthHeader } from "./graphql/client";
import AppNavigator from "./navigation/app-navigator";
import AsyncStorage from "@react-native-async-storage/async-storage";
import { DEV_USER_ID } from "@env";
import AsyncStorage from "@react-native-async-storage/async-storage";
// TODO: move to different file?
const SetAuthHeaderBasedOnEnv = () => {

View File

@ -41,7 +41,7 @@ export default function Login({ navigation }) {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
console.log(authHeader.value)
console.log(authHeader.value);
return (
<TouchableWithoutFeedback onPress={() => Keyboard.dismiss()}>
@ -97,7 +97,11 @@ export default function Login({ navigation }) {
<Text>Phone number: {user?.phoneNumber}</Text>
<SignOutButton />
<Button color="orange" title="Go to app" onPress={() => navigation.push("Tabs")} />
<Button
color="orange"
title="Go to app"
onPress={() => navigation.push("Tabs")}
/>
</>
)}
</View>