/**
 * Learn more about deep linking with React Navigation
 * https://reactnavigation.org/docs/deep-linking
 * https://reactnavigation.org/docs/configuring-links
 */

import { LinkingOptions } from '@react-navigation/native';
import * as Linking from 'expo-linking';
import { RootStackParamList } from '../models/navigation';

const linking: LinkingOptions<RootStackParamList> = {
  prefixes: [Linking.createURL('/')],
  config: {
    screens: {
      Root: {
        screens: {
          Home: {
            screens: {
              Home: 'home',
            },
          },
          Settings: {
            screens: {
              Settings: 'settings',
            },
          },
          Evok: {
            screens: {
              Evok: 'evok',
            },
          },
        },
      },
      EvokModal: 'modal',
      NotFound: '*',
    },
  },
};

export default linking;
