It opens a new screen through a deep link.
The structure is represented by the attributes below:
Attribute | Type | Required | Definition |
---|---|---|---|
route | String | ✓ | Identifier to open a new screen. |
shouldResetApplication | Boolean | Restart an applications preview stack. | |
Data | Map <String, String> | Send data to a new screen. |
On the example below, we have a screen coming from BFF with a button that, when you click, opens a native screen.
To test this, configure Deep Link Handler for Android or openNativeRoute for iOS. Besides, your BFF’s endpoint must return the code screen below and call it in the frontend.
Screen(
child = Button(
text = "Click me!",
onPress = listOf(
Navigate.OpenNativeRoute(
route = "my-native"
)
)
)
)
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.