Skip to content

Support for routeToken Parameter in react-native-navigation-sdk #343

Open
@scaleryvan

Description

@scaleryvan

Description

Hi,
I am currently using react-native-navigation-sdk in my project, and I would like to confirm if the SDK supports the routeToken parameter as an input for routing-related methods (e.g., setDestinations, calculateRoute). This parameter is commonly used to pass precomputed routes or restore a previously generated route. However, I couldn't find any reference to routeToken in the documentation or examples.

Questions

Does the SDK currently support the routeToken parameter?
If supported, could you provide a brief example of how to use it?
If not supported, is there a plan to implement this feature in the future?

Example Usage Attempt

Here’s how I tried using routeToken (assuming it might be supported):

import { NavigationSdk } from 'react-native-navigation-sdk';

NavigationSdk.setDestinations({
  routeToken: 'sampleRouteToken',
  destinations: [
    { latitude: 37.7749, longitude: -122.4194 },
  ],
});

Unfortunately, this either threw an error or did not produce the expected behavior.

Expected Behavior

The SDK should allow the routeToken to be passed and use it for navigation setup, or provide documentation explaining its usage.

Actual Behavior

[Describe what actually happened, e.g., errors, unexpected behavior, etc.]

Additional Information

If this feature is not supported, are there alternative ways to achieve a similar functionality with the SDK?

Thank you for your support and for providing such a helpful SDK!

Metadata

Metadata

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions