Hello there I'm using Voyager for the navigation i...
# multiplatform
m
Hello there I'm using Voyager for the navigation in the KMP, I'm trying to navigate to a screen from a tab and its crashing with following error: java.lang.ClassCastException: screens.home.CardsScreen cannot be cast to cafe.adriel.voyager.navigator.tab.Tab Can anyone tell me how to resolve this error?
j
The issue is that you're trying to open a screen that isn't a Tab, but the current active navigator is a Tab navigator. What you can do is wrap your current screen in a
Navigator
. https://voyager.adriel.cafe/navigation
🙌 1
m
Thank you very much @Jacob Ras. I found a solution.