react-native-sdk icon indicating copy to clipboard operation
react-native-sdk copied to clipboard

Android only showing default Blue Colour

Open y471n opened this issue 3 years ago • 11 comments

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.

y471n avatar Mar 01 '22 08:03 y471n