OnboardingYakDocumentation
DocsBuild your onboarding
BUILD YOUR ONBOARDING

SDK configuration

Configure appearance, localization, progress persistence, capabilities, and analytics environment.

Appearance#

Choose Light, Dark, or Match device in the app’s SDK configuration. You can also pass the appearance property to override the published choice. With system, the renderer follows the device color scheme.

Override appearance
<Onboarding {...props} appearance="system" />

Localization#

Add translated copy to screens in Studio. Every text can be translated: headlines and buttons, choice options, loader steps, checklists, cards, components, charts, and reviews. Translations are matched to the default-language text, not to a screen number, so they stay put when you reorder or delete screens or options (SDK 0.16.0+). The SDK follows the device locale by default. Pass a locale such as fr-CA to force a language. If a screen has no matching translation, the default screen copy is used.

Force a locale
<Onboarding {...props} locale="fr-CA" />

Capabilities and native modules#

Turn on app capabilities in SDK configuration to see the right dependency and integration examples in Studio. Optional modules include Haptics, Video, Tracking, Location, Camera, Photos, Microphone, Contacts, Biometrics, and Store Review. Install only the native dependencies that your onboarding uses.

After adding a native module, rebuild the iOS/Android binary. OnboardingYak’s core renderer does not bundle these native modules itself.

Build environment labels#

The SDK automatically labels development builds as development. Release builds default to production. Set TestFlight or other prerelease builds to testing explicitly:

TestFlight build
<Onboarding {...props} analyticsEnvironment="testing" />

Studio excludes development and testing events from the default overview. Turn on Test data to include them. See Analytics and environments.