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:
parent
a612eb9d38
commit
99491846a9
@ -71,8 +71,6 @@ class CameraDevicesManager(private val reactContext: ReactApplicationContext) :
|
|||||||
eventEmitter.emit("CameraDevicesChanged", getDevicesJson())
|
eventEmitter.emit("CameraDevicesChanged", getDevicesJson())
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun hasConstants(): Boolean = true
|
|
||||||
|
|
||||||
override fun getConstants(): MutableMap<String, Any?> {
|
override fun getConstants(): MutableMap<String, Any?> {
|
||||||
val devices = getDevicesJson()
|
val devices = getDevicesJson()
|
||||||
val preferredDevice = if (devices.size() > 0) devices.getMap(0) else null
|
val preferredDevice = if (devices.size() > 0) devices.getMap(0) else null
|
||||||
|
Loading…
Reference in New Issue
Block a user