Open KarkG opened 3 months ago
@KarkG till author fixes this issue, you can use this patch
diff --git a/node_modules/react-native-hole-view/android/src/main/java/com/ibitcy/react_native_hole_view/RNHoleView.kt b/node_modules/react-native-hole-view/android/src/main/java/com/ibitcy/react_native_hole_view/RNHoleView.kt
index 7edbfeb..78eafc1 100644
--- a/node_modules/react-native-hole-view/android/src/main/java/com/ibitcy/react_native_hole_view/RNHoleView.kt
+++ b/node_modules/react-native-hole-view/android/src/main/java/com/ibitcy/react_native_hole_view/RNHoleView.kt
@@ -180,14 +180,14 @@ class RNHoleView(context: Context) : ReactViewGroup(context) {
mHoles.addAll(holes)
}
- override fun onDraw(canvas: Canvas?) {
+ override fun onDraw(canvas: Canvas) {
super.onDraw(canvas)
if (mHolesPath != null) {
canvas?.drawPath(mHolesPath!!, mHolesPaint)
}
}
- override fun dispatchDraw(canvas: Canvas?) {
+ override fun dispatchDraw(canvas: Canvas) {
super.dispatchDraw(canvas)
if (mHolesPath != null) {
canvas?.drawPath(mHolesPath!!, mHolesPaint)
I am using this package in my Expo managed project.
When creating a build for Android using
eas build -p android --profile development
, the build fails with these logs:Any suggestions as to how to fix this?