createApp
. By default, you get a fully functioning Divvi app with sensible defaults.
Since Divvi Mobile is built on top of Expo, you also get all the benefits of a standard Expo app. This means you can use any Expo configuration options, plugins, and features as documented in the Expo documentation. Common Expo configurations like app icons, splash screens, and native modules can be configured through your app.json
or app.config.js
file.
Basic Configuration
The minimal configuration requires just a few key properties:Customizing Your App
You can customize various aspects of your app by adding optional configuration:Integrating with the Divvi Protocol
Earn Divvi rewards based on the value your users bring to the blockchain protocols you integrate with. To register your app with the Divvi Protocol visit the Divvi Portal To enable Divvi Protocol integration, add thedivviProtocol
configuration to your app:
Theme Customization
Divvi Mobile allows you to customize the look and feel of your app through thethemes
configuration. Note that currently only a single theme is supported.
Tips for Theming
✅ Use brand colors consistentlyAlign buttons, text, and backgrounds with your brand identity to create a cohesive user experience. ✅ Test contrast & accessibility
Ensure text and UI elements remain readable, especially for users with visual impairments. Use high-contrast colors where necessary. ✅ Optimize asset sizes
Provide high-resolution images and icons to ensure crisp visuals across different devices. For best results, include multiple asset sizes (
@1.5x
, @2x
, @3x
, and @4x
). This prevents pixelation on high-density screens and avoids unnecessary upscaling, keeping your app looking sharp.
Tab Navigation
Custom Screens
Beyond tabs, you can add custom screens that can be navigated to from anywhere in your app:Optional Features
Localization
Configuration Reference
For a complete list of configuration options, see the API reference or check the type definition:Best Practices
- Start Simple: Begin with the minimal configuration and add customizations as needed
- Type Safety: Use TypeScript to ensure your configuration is valid
- Asset Management: Keep custom assets in an organized directory structure
- Feature Flags: Use the
features
object to enable/disable functionality - Theme Consistency: Maintain a consistent theme across your app using the theme configuration
Suggest changes to this pageLast updated: Jul 11, 2025, 4:14 PM