Skip to content

feat: add destination parameter to openWidget() API#4

Closed
cellodefaultdev wants to merge 1 commit into
mainfrom
feat/open-widget-destination
Closed

feat: add destination parameter to openWidget() API#4
cellodefaultdev wants to merge 1 commit into
mainfrom
feat/open-widget-destination

Conversation

@cellodefaultdev
Copy link
Copy Markdown
Collaborator

Add support for opening the widget on a specific tab/page, matching the web SDK's open(destination) API.

Supported destinations:

  • "rewards" - opens the rewards tab
  • "edit-payments" - opens the payment details page

Changes:

  • src/index.tsx: openWidget(destination?) accepts optional destination string
  • iOS bridge: CelloReactNative.swift/.mm updated to pass destination to native SDK
  • Android bridge: CelloReactNativeModule.kt updated to pass destination to native SDK
  • Example app: Added test buttons for default, rewards, and edit-payments

Add support for opening the widget on a specific tab/page, matching
the web SDK's open(destination) API.

Supported destinations:
- "rewards" - opens the rewards tab
- "edit-payments" - opens the payment details page

Changes:
- src/index.tsx: openWidget(destination?) accepts optional destination string
- iOS bridge: CelloReactNative.swift/.mm updated to pass destination to native SDK
- Android bridge: CelloReactNativeModule.kt updated to pass destination to native SDK
- Example app: Added test buttons for default, rewards, and edit-payments
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.

1 participant