fix: Fix RN 0.73 error "'hasConstants' overrides nothing" at CameraDevicesManager.kt (#2264)

Co-authored-by: Przemysław Arlet <przemyslaw.arlet@lamel.pl>
This commit is contained in:
Przemysław Arlet 2023-12-12 11:15:46 +01:00 committed by GitHub
parent a612eb9d38
commit 99491846a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,8 +71,6 @@ class CameraDevicesManager(private val reactContext: ReactApplicationContext) :
eventEmitter.emit("CameraDevicesChanged", getDevicesJson())
}
override fun hasConstants(): Boolean = true
override fun getConstants(): MutableMap<String, Any?> {
val devices = getDevicesJson()
val preferredDevice = if (devices.size() > 0) devices.getMap(0) else null