Skip to content

Conversation

@sbeca
Copy link
Contributor

@sbeca sbeca commented Jun 5, 2019

IMPORTANT: This PR relies on PR #33.

When I build the Android version of an application I'm developing that is using react-native-image-sequence, I get the following notes during the Gradle build stage:

> Task :react-native-fs:compileDebugJavaWithJavac
Note: /Users/scott/Documents/SVN/TotallyRealProjectName/node_modules/react-native-fs/android/src/main/java/com/rnfs/RNFSManager.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Which expands out to the following with full deprecation warning details enabled:

> Task :react-native-image-sequence:compileDebugJavaWithJavac
/Users/scott/Documents/SVN/TotallyRealProjectName/node_modules/react-native-image-sequence/android/src/main/java/dk/madslee/imageSequence/RCTResourceDrawableIdHelper.java:47: warning: [deprecation] getDrawable(int) in Resources has been deprecated
            return context.getResources().getDrawable(resId);
                                         ^
1 warning

This PR fixes that deprecation warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant