Get my premium course to build industry-level Android apps & Ktor backends. 🚀 ahmed-guedmioui.thinkific.com/courses/build-industry-level-apps-and-ktor-backends And take your skills to the next level and become ready for the Android industry ✅
Let say i have 2 tabs (using tab-navigator), Home and Profile. When I'm on Profile screen and press back btn, the expectation is to be redirected back to Home. But currently the output is it's closing the app, instead of navigating to previous screen. Any solution for this?
Hi i have question suppose i want to first go to a on boarding screen then to bottom tab screen so can i attach the tab navigator to a compose function or i have to use it in mainactivity?
But doesn't passaging data from screen to screen when navigating go against the single source of truth principle? Isn't a shared viewmodel better to share data between different screens?
I think you're getting wrong 😅 what goes against the single source of truth principle is using a shared viewModel if it leads to creating multiple instances of the same viewModel. Passing data to other screens does not violate that principle as long as you're getting the data from a single source (repository) Hope this makes sense
How to close the bottom navigation if we are in Screen2, here is an example MainTab -> Screen 1 -> here you need to close the bottom navigation in Screen 2
Hey bro, I have a few queries. How to handle back press in Tab Navigator... Like If im on Tab B on Back I want to go to tab A & on back press close when on Tab A. Any possible way to do this?
@@cbnewham5633 There are some cases where there is a need for such a functionality. I found a way to that. In tabNavigator using a backHandler would work perfectly and deactivate the handler when the tab is your starting tab.
Get my premium course to build industry-level Android apps & Ktor backends. 🚀
ahmed-guedmioui.thinkific.com/courses/build-industry-level-apps-and-ktor-backends
And take your skills to the next level and become ready for the Android industry ✅
Meaningful content, keep it up brother
Wonderful work 👏🏻👏🏻
Let say i have 2 tabs (using tab-navigator), Home and Profile. When I'm on Profile screen and press back btn, the expectation is to be redirected back to Home. But currently the output is it's closing the app, instead of navigating to previous screen. Any solution for this?
Hi i have question suppose i want to first go to a on boarding screen then to bottom tab screen so can i attach the tab navigator to a compose function or i have to use it in mainactivity?
But doesn't passaging data from screen to screen when navigating go against the single source of truth principle? Isn't a shared viewmodel better to share data between different screens?
I think you're getting wrong 😅 what goes against the single source of truth principle is using a shared viewModel if it leads to creating multiple instances of the same viewModel.
Passing data to other screens does not violate that principle as long as you're getting the data from a single source (repository)
Hope this makes sense
Wow this is the video I was waiting for, now i have got it 😂🎉
good work bro
Nice work, thx❤
Sir do you know how to get information from a coutine from an object that extends from Tab???
Wow Its Really Cool❤️
does this library can be used in production apps
Good job
thank you, great stuff!
Thanks!
Fantastic
How to close the bottom navigation if we are in Screen2, here is an example
MainTab -> Screen 1 -> here you need to close the bottom navigation in Screen 2
Can you use both voyager and the google navigation interchangeably in one project?
Yes
Hey bro, I have a few queries. How to handle back press in Tab Navigator... Like If im on Tab B on Back I want to go to tab A & on back press close when on Tab A. Any possible way to do this?
You wouldn't use a back button press to navigate between tabs. It doesn't make logical sense to do so.
@@cbnewham5633 There are some cases where there is a need for such a functionality. I found a way to that. In tabNavigator using a backHandler would work perfectly and deactivate the handler when the tab is your starting tab.
what if i want to exclude bottombar for some screens?
Can we use this voyager library also in XML?
Kind of yes
Thank you!
Thank you bro
Can you send an object as an argument?
Yes
Can anyone explain why my app crashes when i implement transitions?