36 lines
743 B
TypeScript
36 lines
743 B
TypeScript
import { Stack } from 'expo-router'
|
|
import { StatusBar } from 'expo-status-bar'
|
|
|
|
export default function RootLayout() {
|
|
return (
|
|
<>
|
|
<StatusBar style="light" />
|
|
<Stack
|
|
screenOptions={{
|
|
headerStyle: {
|
|
backgroundColor: '#1a1a1a',
|
|
},
|
|
headerTintColor: '#fff',
|
|
headerTitleStyle: {
|
|
fontWeight: 'bold',
|
|
},
|
|
}}
|
|
>
|
|
<Stack.Screen
|
|
name="index"
|
|
options={{
|
|
title: '馃搳 PollCelo',
|
|
}}
|
|
/>
|
|
<Stack.Screen
|
|
name="vote/[pollId]/[optionId]"
|
|
options={{
|
|
title: 'Vote',
|
|
presentation: 'modal',
|
|
}}
|
|
/>
|
|
</Stack>
|
|
</>
|
|
)
|
|
}
|