react-native-sdk
react-native-sdk copied to clipboard
Android only showing default Blue Colour
Version: 4.0.1
The app/build.gradle has the following:
defaultConfig {
multiDexEnabled true
...
and:
configurations.all {
resolutionStrategy {
eachDependency { DependencyResolveDetails details ->
if (!details.requested.name.contains('onfido')) {
if (details.requested.group == 'com.squareup.okhttp3') {
details.useVersion '4.9.0'
}
}
}
}
}
Added the following: colors.json to the Root of project along with node_modules.
{
"onfidoPrimaryColor": "#41CE8E",
"onfidoPrimaryButtonTextColor": "#FFFFFF",
"onfidoPrimaryButtonColorPressed": "#E8E8E8",
"onfidoAndroidStatusBarColor": "#41CE8E",
"onfidoAndroidToolBarColor": "#41CE8E",
"onfidoIosSupportDarkMode": false
}
Ran the command: $ npm --prefix node_modules/@onfido/react-native-sdk/ run updateColors
as well.
But the project still has blue icons on Android.