imports reorder
This commit is contained in:
committed by
GitHub
parent
be9696b8b5
commit
76223faa19
@@ -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,
|
||||
|
||||
@@ -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 = () => {
|
||||
<SignedIn>
|
||||
<Text>Hello {user?.emailAddresses[0].emailAddress}</Text>
|
||||
</SignedIn>
|
||||
<SignedOut>
|
||||
<Link href="/sign-in">
|
||||
<Text>Sign In</Text>
|
||||
</Link>
|
||||
<Link href="/sign-up">
|
||||
<Text>Sign Up</Text>
|
||||
</Link>
|
||||
</SignedOut>
|
||||
</SafeAreaView>
|
||||
);
|
||||
};
|
||||
|
||||
+2
-1
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user