imports reorder

This commit is contained in:
Sanidhya Kumar Verma
2024-08-30 05:59:42 +00:00
committed by GitHub
parent be9696b8b5
commit 76223faa19
3 changed files with 5 additions and 12 deletions
+2 -1
View File
@@ -1,7 +1,8 @@
import { icons } from "@/constants";
import { Tabs } from "expo-router"; import { Tabs } from "expo-router";
import { Image, type ImageSourcePropType, View } from "react-native"; import { Image, type ImageSourcePropType, View } from "react-native";
import { icons } from "@/constants";
const TabIcon = ({ const TabIcon = ({
source, source,
focused, focused,
+1 -10
View File
@@ -1,5 +1,4 @@
import { SignedIn, SignedOut, useUser } from "@clerk/clerk-expo"; import { SignedIn, useUser } from "@clerk/clerk-expo";
import { Link } from "expo-router";
import { Text } from "react-native"; import { Text } from "react-native";
import { SafeAreaView } from "react-native-safe-area-context"; import { SafeAreaView } from "react-native-safe-area-context";
@@ -11,14 +10,6 @@ const Home = () => {
<SignedIn> <SignedIn>
<Text>Hello {user?.emailAddresses[0].emailAddress}</Text> <Text>Hello {user?.emailAddresses[0].emailAddress}</Text>
</SignedIn> </SignedIn>
<SignedOut>
<Link href="/sign-in">
<Text>Sign In</Text>
</Link>
<Link href="/sign-up">
<Text>Sign Up</Text>
</Link>
</SignedOut>
</SafeAreaView> </SafeAreaView>
); );
}; };
+2 -1
View File
@@ -1,4 +1,3 @@
import { tokenCache } from "@/lib/auth";
import { ClerkProvider, ClerkLoaded } from "@clerk/clerk-expo"; import { ClerkProvider, ClerkLoaded } from "@clerk/clerk-expo";
import { useFonts } from "expo-font"; import { useFonts } from "expo-font";
import { Stack } from "expo-router"; import { Stack } from "expo-router";
@@ -6,6 +5,8 @@ import * as SplashScreen from "expo-splash-screen";
import { useEffect } from "react"; import { useEffect } from "react";
import "react-native-reanimated"; import "react-native-reanimated";
import { tokenCache } from "@/lib/auth";
// Prevent the splash screen from auto-hiding before asset loading is complete. // Prevent the splash screen from auto-hiding before asset loading is complete.
SplashScreen.preventAutoHideAsync(); SplashScreen.preventAutoHideAsync();