Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
scaleryvan opened this issue Nov 18, 2024 · 1 comment
Open

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

scaleryvan opened this issue Nov 18, 2024 · 1 comment
Assignees
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@scaleryvan
Copy link

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!

@scaleryvan scaleryvan added triage me I really want to be triaged. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Nov 18, 2024
@jokerttu
Copy link
Contributor

Thank you for suggesting this feature!

@jokerttu jokerttu added priority: p2 Moderately-important priority. Fix may not be included in next release. and removed triage me I really want to be triaged. labels Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

3 participants