From ebc613fee1ec59642b87a075da4d0a97b3aa1ad7 Mon Sep 17 00:00:00 2001
From: Santo Cariotti <santo@dcariotti.me>
Date: Fri, 30 Aug 2024 13:41:08 +0200
Subject: Use Expo router env

---
 app/(tabs)/index.tsx | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

(limited to 'app/(tabs)/index.tsx')

diff --git a/app/(tabs)/index.tsx b/app/(tabs)/index.tsx
index 46a690f..c631903 100644
--- a/app/(tabs)/index.tsx
+++ b/app/(tabs)/index.tsx
@@ -4,7 +4,6 @@ import ParallaxScrollView from '@/components/ParallaxScrollView';
 import { ThemedText } from '@/components/ThemedText';
 import { ThemedView } from '@/components/ThemedView';
 import React, { useState, useEffect } from 'react';
-import { API_URL } from '@env';
 import AsyncStorage from '@react-native-async-storage/async-storage';  
 
 
@@ -28,7 +27,7 @@ export default function HomeScreen() {
     }
 
     try {
-      const response = await fetch(`${API_URL}/graphql`, {
+      const response = await fetch(`${process.env.EXPO_PUBLIC_API_URL}/graphql`, {
         method: 'POST',
         headers: {
           'Content-Type': 'application/json',
@@ -108,7 +107,6 @@ export default function HomeScreen() {
                 style={styles.formInput}
                 onChangeText={setUsername}
                 value={username}
-                placeholder="Username"
               />
             </View>
             <View>
@@ -117,7 +115,6 @@ export default function HomeScreen() {
                 style={styles.formInput}
                 onChangeText={setPassword}
                 value={password}
-                placeholder="Password"
                 secureTextEntry
               />
             </View>
-- 
cgit v1.2.3-18-g5258

