From 202508b500420e662276f0cb0aa3db33115e16fa Mon Sep 17 00:00:00 2001 From: NilsKrause Date: Thu, 13 Jan 2022 10:33:07 +0100 Subject: [PATCH] fix: Use ViewGroupManager instead of SimpleViewManager (#735) --- .../src/main/java/com/mrousavy/camera/CameraViewManager.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/main/java/com/mrousavy/camera/CameraViewManager.kt b/android/src/main/java/com/mrousavy/camera/CameraViewManager.kt index 83f03c7..35e01e4 100644 --- a/android/src/main/java/com/mrousavy/camera/CameraViewManager.kt +++ b/android/src/main/java/com/mrousavy/camera/CameraViewManager.kt @@ -3,12 +3,12 @@ package com.mrousavy.camera import com.facebook.react.bridge.ReactApplicationContext import com.facebook.react.bridge.ReadableMap import com.facebook.react.common.MapBuilder -import com.facebook.react.uimanager.SimpleViewManager +import com.facebook.react.uimanager.ViewGroupManager import com.facebook.react.uimanager.ThemedReactContext import com.facebook.react.uimanager.annotations.ReactProp @Suppress("unused") -class CameraViewManager(reactContext: ReactApplicationContext) : SimpleViewManager() { +class CameraViewManager(reactContext: ReactApplicationContext) : ViewGroupManager() { public override fun createViewInstance(context: ThemedReactContext): CameraView { val cameraViewModule = context.getNativeModule(CameraViewModule::class.java)!!