From 9141d2bdef12d53768c97f7a70b9dba6f9f4e3aa Mon Sep 17 00:00:00 2001 From: yeong0809 <31876283+yeong0809@users.noreply.github.com> Date: Fri, 4 Apr 2025 00:37:15 +0800 Subject: [PATCH] Suppress UIManagerType error --- .../src/main/java/com/mrousavy/camera/react/CameraViewModule.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/android/src/main/java/com/mrousavy/camera/react/CameraViewModule.kt b/package/android/src/main/java/com/mrousavy/camera/react/CameraViewModule.kt index 7ae420949d..c64a5fb07b 100644 --- a/package/android/src/main/java/com/mrousavy/camera/react/CameraViewModule.kt +++ b/package/android/src/main/java/com/mrousavy/camera/react/CameraViewModule.kt @@ -33,6 +33,7 @@ import kotlinx.coroutines.asCoroutineDispatcher import kotlinx.coroutines.cancel import kotlinx.coroutines.isActive import kotlinx.coroutines.launch +import android.annotation.SuppressLint @ReactModule(name = CameraViewModule.TAG) @Suppress("unused") @@ -69,6 +70,7 @@ class CameraViewModule(reactContext: ReactApplicationContext) : ReactContextBase Log.d(TAG, "Finding view $viewId...") val context = reactApplicationContext ?: throw Error("React Context was null!") + @SuppressLint("WrongConstant") val uiManagerType = if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) UIManagerType.FABRIC else UIManagerType.DEFAULT val uiManager = UIManagerHelper.getUIManager(context, uiManagerType) ?: throw Error("UIManager not found!")