UI Module

The UI module allows a method of launching all of the self contained modules the LucraSDK supports. These flows can be easily integrated into your app's navigation at the appropriate time.

To utilize the UI layer use the .present function and pass in the flow you want to show:

Presentation

export default function App() {
  return (
    <View style={styles.container}>
      <Button
        title="Show Profile"
        onPress={() => LucraSDK.present(LucraSDK.FLOW.PROFILE)}
      />
      <Button
        title="Show Add Funds"
        onPress={() => LucraSDK.present(LucraSDK.FLOW.ADD_FUNDS)}
      />
    </View>
  );
}

LucraFlow

Provides an easy to use type to present each of the supported flows

Gatekeeping Flows

These flows can be presented manually early on depending on your use case or they will be automatically presented as required when presenting Functionality Flows

Onboarding - Presents phone number authentication flow to the user

Verify Identity - Presents KYC (Know Your Customer) flow to verify the user's identity. Required to take any monetary actions.

Functionality Flows

These are the core flows to present to the user.

Profile - Presents the users profile screen including active contests, user stats, add/withdraw funds, and additional items such as contacting support

Onboarding - Presents the login flow

Add Funds - Presents flow to add funds to the user's wallet

Withdraw Funds - Presents flow to withdraw from the user's wallet

Create Games Matchup - Presents flow to create a Games You Play contest and join Tournaments

Create Sports Matchup - Presents flow to create a Sports You Watch contest

For testing purposes the following fake credit card number/bank account can be used for deposits:

  • Credit Card:

  • Bank account: Please follow the steps below

Testing Note - emulators will not be allowed to conduct transactions, our third-party geolocation provider, Geocomply, fails these transactions.

Last updated