import { Stack } from "expo-router";
import { StatusBar } from "expo-status-bar";
import "../../global.css";
import { PortalHost } from "@rn-primitives/portal";
import { View } from "react-native";

export default function RootLayout() {
	return (
		<>
			<StatusBar style="dark" />
			<Stack screenOptions={{ headerShown: false }}>
				<Stack.Screen name="index" />
				<View className="items-center">
					<Stack.Screen
						name="(tabs)"
						options={{
							title: "Pending update",
							headerStyle: {
								backgroundColor: "lightblue",
							},
						}}
					/>
				</View>
			</Stack>
			<PortalHost />
		</>
	);
}
