Lucra Flows

Lucra flows are full-screen or embedded UI experiences surfaced by the SDK.

Full-Screen Flows

Use LucraSDK.present to display a full-screen flow.

Available Flows

const Flows = {
  ONBOARDING: 'onboarding',
  VERIFY_IDENTITY: 'verifyIdentity',
  PROFILE: 'profile',
  ADD_FUNDS: 'addFunds',
  CREATE_GAMES_MATCHUP: 'createGamesMatchup',
  CREATE_SPORTS_MATCHUP: 'createSportsMatchup',
  WITHDRAW_FUNDS: 'withdrawFunds',
  PUBLIC_FEED: 'publicFeed',
  MY_MATCHUP: 'myMatchup',
  GAMES_CONTEST_DETAILS: 'gamesMatchupDetails',
  MATCHUP_DETAILS: 'matchupDetails',
  DEMOGRAPHIC_COLLECTION: 'demographicCollection',
} as const;

Presenting Flows

Flows that require parameters:

Flow Descriptions and Parameters

  • ONBOARDING: Starts the user onboarding flow.

  • VERIFY_IDENTITY: Prompts the user to verify identity.

  • PROFILE: Opens the Lucra profile view.

  • ADD_FUNDS: Opens the add funds flow.

  • WITHDRAW_FUNDS: Opens the withdraw funds flow.

  • PUBLIC_FEED: Opens the sports public feed.

  • MY_MATCHUP: Opens the user's matchup feed.

  • DEMOGRAPHIC_COLLECTION: Prompts the user to complete demographics.

  • CREATE_GAMES_MATCHUP: Create a games matchup. Optional params:

    • gameId (string): Your internal game identifier.

  • CREATE_SPORTS_MATCHUP: Create a sports matchup.

  • GAMES_CONTEST_DETAILS: Show a games matchup. Required params:

    • matchupId (string): Lucra matchup ID.

  • MATCHUP_DETAILS: Show a generic matchup. Required params:

    • matchupId (string): Lucra matchup ID.

Dismissing Full-Screen Flows

Call LucraSDK.closeFullScreenLucraFlows() to programmatically dismiss any active Lucra full-screen UI:

Embedded Flows (Experimental)

Use LucraFlowView to embed a flow inside your React Native UI:

Android Note (react-native-screens)

On Android with react-native-screens, embedded Compose views may disappear. If you use embedded flows, remount them when the screen is focused:

Last updated