I have a global component that I need to show only for some routes. How can I do that? I use only stack navigators.
const route = useRoute();if (route.name !== 'Main') return null;
It doesn't work.
I have a global component that I need to show only for some routes. How can I do that? I use only stack navigators.
const route = useRoute();if (route.name !== 'Main') return null;
It doesn't work.