import type {FunctionComponent} from 'react'
import ThemeProvider from '../context/themeProvider'
import {Stack} from 'expo-router'
import {GestureHandlerRootView} from 'react-native-gesture-handler'

const RootLayout: FunctionComponent = () => {
  return (
    <GestureHandlerRootView>
      <ThemeProvider>
        <Stack>
          <Stack.Screen
            name="index"
            options={{
              title: 'Gallery',
            }}
          />
        </Stack>
      </ThemeProvider>
    </GestureHandlerRootView>
  )
}

export default RootLayout
