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

Overrides a depricated API

Open atifaziz1 opened this issue 5 years ago • 2 comments

Uses or overrides depricated API

react-native --v : 0.59.9 npm --v : 6.13.2 react-native-community --v : 3.3.1

I am getting this error on android. Please let me know how to fix this ASAP.

node_modules/@react-native-community/blur/android/src/main/java/com/cmcewen/blurview/BlurringView.java: uses or overrides a deprecated API. Recompile with -Xlint:deprecation for details.

atifaziz1 avatar Dec 29 '19 12:12 atifaziz1

Also getting this error

esthor avatar Jan 13 '20 17:01 esthor

Add the following to app/build.gradle as a workaround:

allprojects {
    ...

    gradle.projectsEvaluated {
        tasks.withType(JavaCompile) {
            options.compilerArgs << "-Xlint:deprecation"
        }
    }   
}

Source: https://stackoverflow.com/questions/49711773/how-to-recompile-with-xlintdeprecation

hilkeheremans avatar Jan 27 '20 08:01 hilkeheremans