Purpose of useLinking in Expo tabs template

What is the purpose of the file useLinking in expo template (with tabs)?

The <BottomTab.Screen… already have the name of the screen. Why do we need to list it down again in useLinking file?

Does it mean that I have to list down all the screens used in my app, be it used in drawer, stack or tabs?

Appreciate someone can enlighten me on this. Thanks

import { useLinking } from '@react-navigation/native';
import { Linking } from 'expo';

export default function(containerRef) {
  return useLinking(containerRef, {
    prefixes: [Linking.makeUrl('/')],
    config: {
      Root: {
        path: 'root',
        screens: {
          Home: 'home',
          Links: 'links',
          Settings: 'settings',

I’m wondering the same thing!

hello! if you don’t care about deep linking then don’t worry about it. you can read about useLinking here https://reactnavigation.org/docs/use-linking/ and here https://reactnavigation.org/docs/deep-linking/

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.