React Native Branding Strings
Android
Please follow the instructions on Android Branding Strings page.
iOS
The custom strings / localization can be provided as explained on iOS Branding Strings page via the custom localization bundle. And then a bundle where custom strings can be found should be defined as part of SbCaptureConfiguration .
All custom strings are optional, and if not provided, the default SDK strings will be used. Also, if you don’t provide any localization bundle at all (SbCaptureConfiguration.branding.iosBundles.localization
in Step 2 in this section), the SDK will use all default strings.
Step 1: Add custom strings and localization to iOS app
Follow the iOS Branding Strings guide.
Step 2: Specify the localization bundle
The localization bundle should be provided as part of iosBundles property of the branding property in the SbCaptureConfiguration .
Each property inside iosBundles can be of one of the following types:
- SbMainBundle which defines main app’s bundle, and doesn’t require additional properties.
- SbCustomBundle which defines a custom bundle. This type of bundle requires the name specified as an additional property.
Example
If custom localization was provided in main app’s bundle, the following should be added to SbCaptureConfiguration :
const captureConfiguration: SbCaptureConfiguration = {
captureFeatures: {
// ...
},
branding: {
iosColors: {
// ...
},
iosFonts: {
// ...
},
iosBundles: {
localization: {
kind: 'main',
},
images: {
// ...
},
},
},
};