OpenNativeRoute

Here you’ll find OpenNavigateRoute description and its attributes.

What is it?

It opens a new screen through a deep link.​

The structure is represented by the attributes below:

AttributeTypeRequiredDefinition
routeStringIdentifier to open a new screen.
shouldResetApplicationBooleanRestart an applications preview stack.
DataMap <String, String>Send data to a new screen.

How to use it?

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"
            )
        )
    )
)

Last modified February 11, 2021: create content (#298) (43225e15)