Skip to content

Commit

Permalink
fix: Fix RN 0.73 error "'hasConstants' overrides nothing" at CameraDe…
Browse files Browse the repository at this point in the history
…vicesManager.kt (#2264)

Co-authored-by: Przemysław Arlet <przemyslaw.arlet@lamel.pl>
  • Loading branch information
parlet and Przemysław Arlet authored Dec 12, 2023
1 parent a612eb9 commit 9949184
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit 9949184

@vercel
Copy link

@vercel vercel bot commented on 9949184 Dec 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.