22 lines
584 B
TypeScript
22 lines
584 B
TypeScript
import { FC, useEffect } from "react";
|
|
import { Text } from "react-native";
|
|
import { SafeAreaView } from "react-native-safe-area-context";
|
|
import { StatusBar } from "expo-status-bar";
|
|
|
|
const Page: FC = () => {
|
|
useEffect(() => {
|
|
fetch(`${process.env.EXPO_PUBLIC_API_BASE_URL}/`).then(r => r.text()).then(console.log)
|
|
}, [])
|
|
|
|
return (
|
|
<SafeAreaView className="flex-1 items-center justify-center bg-gray-900">
|
|
<StatusBar style="light" />
|
|
<Text className="text-xl font-bold text-gray-100">
|
|
Welcome to p1ctos4ve!
|
|
</Text>
|
|
</SafeAreaView>
|
|
);
|
|
};
|
|
|
|
export default Page;
|