prettier
This commit is contained in:
parent
c1ba1ceb7c
commit
71a5f72381
2
App.tsx
2
App.tsx
@ -2,8 +2,8 @@ import React, { useEffect } from "react";
|
|||||||
import { ClientProvider, useAuthHeader } from "./graphql/client";
|
import { ClientProvider, useAuthHeader } from "./graphql/client";
|
||||||
import AppNavigator from "./navigation/app-navigator";
|
import AppNavigator from "./navigation/app-navigator";
|
||||||
|
|
||||||
import AsyncStorage from "@react-native-async-storage/async-storage";
|
|
||||||
import { DEV_USER_ID } from "@env";
|
import { DEV_USER_ID } from "@env";
|
||||||
|
import AsyncStorage from "@react-native-async-storage/async-storage";
|
||||||
|
|
||||||
// TODO: move to different file?
|
// TODO: move to different file?
|
||||||
const SetAuthHeaderBasedOnEnv = () => {
|
const SetAuthHeaderBasedOnEnv = () => {
|
||||||
|
@ -41,7 +41,7 @@ export default function Login({ navigation }) {
|
|||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
console.log(authHeader.value)
|
console.log(authHeader.value);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TouchableWithoutFeedback onPress={() => Keyboard.dismiss()}>
|
<TouchableWithoutFeedback onPress={() => Keyboard.dismiss()}>
|
||||||
@ -97,7 +97,11 @@ export default function Login({ navigation }) {
|
|||||||
<Text>Phone number: {user?.phoneNumber}</Text>
|
<Text>Phone number: {user?.phoneNumber}</Text>
|
||||||
|
|
||||||
<SignOutButton />
|
<SignOutButton />
|
||||||
<Button color="orange" title="Go to app" onPress={() => navigation.push("Tabs")} />
|
<Button
|
||||||
|
color="orange"
|
||||||
|
title="Go to app"
|
||||||
|
onPress={() => navigation.push("Tabs")}
|
||||||
|
/>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</View>
|
</View>
|
||||||
|
Loading…
Reference in New Issue
Block a user