Skip to content

Conversation

stealkiller06
Copy link
Contributor

@stealkiller06 stealkiller06 commented Dec 19, 2024

…with routeToken support

  • Added routeToken parameter to setDestination and setDestinations methods in NavModule.
  • Updated TypeScript definitions to include routeToken in NavigationController interface.
  • Implemented logging for routeToken usage in setDestinations method.
  • Adjusted logic to prioritize routeToken over routingOptions when setting destinations.

TODO:

  • Add android implementation
  • Add unit tests
  • Update documentation
  • Add example usage
  • Remove WIP status when ready

This change improves navigation flexibility by allowing pre-calculated routes.

Fixes #343

It's a good idea to open an issue first for discussion.

  • Tests pass
  • Appropriate changes to documentation are included in the PR

…with routeToken support

- Added routeToken parameter to setDestination and setDestinations methods in NavModule.
- Updated TypeScript definitions to include routeToken in NavigationController interface.
- Implemented logging for routeToken usage in setDestinations method.
- Adjusted logic to prioritize routeToken over routingOptions when setting destinations.

This change improves navigation flexibility by allowing pre-calculated routes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for routeToken Parameter in react-native-navigation-sdk
2 participants