Clone the project, npm install + build Android with "gradlew assembleRelease"and you get this compilation error:
> Task :react-native-charts-wrapper:compileReleaseJavaWithJavac FAILED
warning: [options] source value 7 is obsolete and will be removed in a future release
warning: [options] target value 7 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
/Users/i030367/Documents/charge-angels/production/mobile/ev-mobile/node_modules/react-native-charts-wrapper/android/src/main/java/com/github/wuxudong/rncharts/listener/RNOnChartGestureListener.java:3: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
/Users/i030367/Documents/charge-angels/production/mobile/ev-mobile/node_modules/react-native-charts-wrapper/android/src/main/java/com/github/wuxudong/rncharts/markers/RNRectangleMarkerView.java:5: error: package android.support.v4.content.res does not exist
import android.support.v4.content.res.ResourcesCompat;
^
/Users/i030367/Documents/charge-angels/production/mobile/ev-mobile/node_modules/react-native-charts-wrapper/android/src/main/java/com/github/wuxudong/rncharts/listener/RNOnChartGestureListener.java:93: error: cannot find symbol
@NonNull
^
symbol: class NonNull
location: class RNOnChartGestureListener
/Users/i030367/Documents/charge-angels/production/mobile/ev-mobile/node_modules/react-native-charts-wrapper/android/src/main/java/com/github/wuxudong/rncharts/markers/RNRectangleMarkerView.java:25: error: cannot find symbol
private Drawable backgroundLeft = ResourcesCompat.getDrawable(getResources(), R.drawable.rectangle_marker_left, null);
^
symbol: variable ResourcesCompat
location: class RNRectangleMarkerView
/Users/i030367/Documents/charge-angels/production/mobile/ev-mobile/node_modules/react-native-charts-wrapper/android/src/main/java/com/github/wuxudong/rncharts/markers/RNRectangleMarkerView.java:26: error: cannot find symbol
private Drawable background = ResourcesCompat.getDrawable(getResources(), R.drawable.rectangle_marker, null);
^
symbol: variable ResourcesCompat
location: class RNRectangleMarkerView
/Users/i030367/Documents/charge-angels/production/mobile/ev-mobile/node_modules/react-native-charts-wrapper/android/src/main/java/com/github/wuxudong/rncharts/markers/RNRectangleMarkerView.java:27: error: cannot find symbol
private Drawable backgroundRight = ResourcesCompat.getDrawable(getResources(), R.drawable.rectangle_marker_right, null);
^
symbol: variable ResourcesCompat
location: class RNRectangleMarkerView
/Users/i030367/Documents/charge-angels/production/mobile/ev-mobile/node_modules/react-native-charts-wrapper/android/src/main/java/com/github/wuxudong/rncharts/markers/RNRectangleMarkerView.java:29: error: cannot find symbol
private Drawable backgroundTopLeft = ResourcesCompat.getDrawable(getResources(), R.drawable.rectangle_marker_top_left, null);
^
symbol: variable ResourcesCompat
location: class RNRectangleMarkerView
/Users/i030367/Documents/charge-angels/production/mobile/ev-mobile/node_modules/react-native-charts-wrapper/android/src/main/java/com/github/wuxudong/rncharts/markers/RNRectangleMarkerView.java:30: error: cannot find symbol
private Drawable backgroundTop = ResourcesCompat.getDrawable(getResources(), R.drawable.rectangle_marker_top, null);
^
symbol: variable ResourcesCompat
location: class RNRectangleMarkerView
/Users/i030367/Documents/charge-angels/production/mobile/ev-mobile/node_modules/react-native-charts-wrapper/android/src/main/java/com/github/wuxudong/rncharts/markers/RNRectangleMarkerView.java:31: error: cannot find symbol
private Drawable backgroundTopRight = ResourcesCompat.getDrawable(getResources(), R.drawable.rectangle_marker_top_right, null);
^
symbol: variable ResourcesCompat
location: class RNRectangleMarkerView
Note: /Users/i030367/Documents/charge-angels/production/mobile/ev-mobile/node_modules/react-native-charts-wrapper/android/src/main/java/com/github/wuxudong/rncharts/charts/CustomFormatter.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
9 errors
3 warnings
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-charts-wrapper:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.