From 76223faa1976f2ec8bddf91ec39e820fd15be58b Mon Sep 17 00:00:00 2001 From: Sanidhya Kumar Verma Date: Fri, 30 Aug 2024 05:59:42 +0000 Subject: [PATCH] imports reorder --- app/(root)/(tabs)/_layout.tsx | 3 ++- app/(root)/(tabs)/home.tsx | 11 +---------- app/_layout.tsx | 3 ++- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/app/(root)/(tabs)/_layout.tsx b/app/(root)/(tabs)/_layout.tsx index b3e2e21..af698c7 100644 --- a/app/(root)/(tabs)/_layout.tsx +++ b/app/(root)/(tabs)/_layout.tsx @@ -1,7 +1,8 @@ -import { icons } from "@/constants"; import { Tabs } from "expo-router"; import { Image, type ImageSourcePropType, View } from "react-native"; +import { icons } from "@/constants"; + const TabIcon = ({ source, focused, diff --git a/app/(root)/(tabs)/home.tsx b/app/(root)/(tabs)/home.tsx index 558606f..622d250 100644 --- a/app/(root)/(tabs)/home.tsx +++ b/app/(root)/(tabs)/home.tsx @@ -1,5 +1,4 @@ -import { SignedIn, SignedOut, useUser } from "@clerk/clerk-expo"; -import { Link } from "expo-router"; +import { SignedIn, useUser } from "@clerk/clerk-expo"; import { Text } from "react-native"; import { SafeAreaView } from "react-native-safe-area-context"; @@ -11,14 +10,6 @@ const Home = () => { Hello {user?.emailAddresses[0].emailAddress} - - - Sign In - - - Sign Up - - ); }; diff --git a/app/_layout.tsx b/app/_layout.tsx index b680471..dd15590 100644 --- a/app/_layout.tsx +++ b/app/_layout.tsx @@ -1,4 +1,3 @@ -import { tokenCache } from "@/lib/auth"; import { ClerkProvider, ClerkLoaded } from "@clerk/clerk-expo"; import { useFonts } from "expo-font"; import { Stack } from "expo-router"; @@ -6,6 +5,8 @@ import * as SplashScreen from "expo-splash-screen"; import { useEffect } from "react"; import "react-native-reanimated"; +import { tokenCache } from "@/lib/auth"; + // Prevent the splash screen from auto-hiding before asset loading is complete. SplashScreen.preventAutoHideAsync();