Fix React Native 0.79 Kotlin compilation errors
- Fix currentActivity reference in CameraViewModule - Convert Map to MutableMap in CameraViewManager for RN 0.79 compatibility
This commit is contained in:
@@ -32,7 +32,7 @@ class CameraViewManager : ViewGroupManager<CameraView>() {
|
||||
.put("cameraError", MapBuilder.of("registrationName", "onError"))
|
||||
.put("cameraCodeScanned", MapBuilder.of("registrationName", "onCodeScanned"))
|
||||
.put("onVideoChunkReady", MapBuilder.of("registrationName", "onVideoChunkReady"))
|
||||
.build()
|
||||
.build()?.toMutableMap()
|
||||
|
||||
override fun getName(): String = TAG
|
||||
|
||||
|
||||
Reference in New Issue
Block a user