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',
},
},
},
});
}