LogoLogo
  • Welcome!
  • MOBILE SDK
    • iOS
      • SnapOdds Operator
        • Installation
        • Initialization
        • Snapping Games
        • Customization
        • API documentation
      • SnapOdds Sport Media
        • Installation
        • Initialization
        • Snapping Games and Presenting Odds
        • Customization
        • API documentation
    • Android
      • SnapOdds Operator
        • Installation
        • Initialization
        • Permissions
        • Snapping Games
        • Customization
        • API documentation
      • SnapOdds Sport Media
        • Installation
        • Initialization
        • Permissions
        • Snapping Games and Presenting Odds
        • Customization
        • API documentation
    • React Native
      • iOS Installation
      • Android Installation
      • SnapOdds Operator
        • Initialization
        • Snapping Games
        • Customization
      • SnapOdds Sport Media
        • Initialization
        • Snapping Games and Presenting Odds
        • Customization
  • Web SDK
    • JavaScript
      • SnapOdds Operator
        • Installation
        • Access Token Handling
        • Snapping Games
        • Customization
        • API documentation
      • SnapOdds Sport Media
        • Installation
        • Access Token Handling
        • Snapping Games and Presenting Odds
        • Customization
        • API documentation
      • Implementation Errors
  • Integration Guide
    • SnapOdds as Button
    • SnapOdds as Banner
Powered by GitBook
On this page
  • Customizing Colors
  • Customizing Snap UI

Was this helpful?

Export as PDF
  1. MOBILE SDK
  2. React Native
  3. SnapOdds Operator

Customization

Customizing Colors

To customize in the Snap UI use the updateColorConfiguration method provided by our Native Module. The following code snippet shows all available options. Please note that for each color option, you can provide either a single color which is used for both light and dark mode or you can append the suffix -light or -dark to the color name to provide specific colors.

SnapscreenSDKModule.updateColorConfiguration({
  "textPrimary": "#000000",
  "textAccent": "#000000",
  "backgroundWhite": "#FFFFFF",
      
  "background-light": "#E5E5E5",
  "background-dark": "#4B4B4B",

  "backgroundMuted": "#F2f2F2",
  "border": "#E5E5E5",
  "backgroundAccent": "#2DD4BF",
  "backgroundAccentShade": "#D5F6F2",
  "error": "#EA436E",
  "errorShade": "#FBD9E2"
});

Customizing Snap UI

To customize displayed messages in the Snap UI use the updateSnapUIConfiguration method provided by our Native Module. The following code snippet shows all available options:

SnapscreenSDKModule.updateSnapUIConfiguration({ 
  "snapHintText": "My Custom Snap Hint", 
  "snapProgressText": "Custom Progress",
  "snapErrorGeneralText": "Custom Error",
  "snapErrorConnectionIssueText": "Custom Connection Error",
  "snapErrorNoResultsText": "Custom No Results",
  "hidePoweredBySnapOddsBranding": true
});

All desired customizations must be done prior to presenting the Snap UI.

PreviousSnapping GamesNextSnapOdds Sport Media

Last updated 2 years ago

Was this helpful?