repack icon indicating copy to clipboard operation
repack copied to clipboard

Repack Navigation From Mini App To Main APP

Open Nazehs opened this issue 11 months ago • 1 comments

Ask your Question

I am wondering how navigation works in repack. I am certain the back button navigation takes me back to the previous route on the stack but i am wondering how i can take a user from the mini page for example to the main page directly without using the back button. In my use case, i want to go back to the main app because the navigations of the main app are not in the mini app when the mini app launches and i want them to be able to move back to the main app because of how my app is designed

Nazehs avatar Mar 04 '24 19:03 Nazehs

Hi @Nazehs,

if your NavigationContainer is in the host app and the mini-app is rendered within the component tree, then you could just do navigation.navigate() to any screen in the app that you want. You could also utilize pop and popToTop to achieve similar effect.

In terms of navigation, not much changes in that respect when using MF.

jbroma avatar Mar 05 '24 10:03 jbroma

This issue has been marked as stale because it has been inactive for 30 days. Please update this issue or it will be automatically closed in 14 days.

github-actions[bot] avatar Apr 05 '24 00:04 github-actions[bot]

This issue has been automatically closed because it has been inactive for more than 14 days. Please reopen if you want to add more context.

github-actions[bot] avatar Apr 20 '24 00:04 github-actions[bot]