fix: Fix physicalDevices
DeviceType computation on Android (#2072)
* fix: Fix device type calculation on Android * fix: Type safety for deviceTypes * fix: Update docs
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package com.mrousavy.camera.extensions
|
||||
|
||||
import com.facebook.react.bridge.Arguments
|
||||
import com.facebook.react.bridge.ReadableArray
|
||||
import com.mrousavy.camera.types.JSUnionValue
|
||||
|
||||
fun List<JSUnionValue>.toJSValue(): ReadableArray {
|
||||
val arguments = Arguments.createArray()
|
||||
this.forEach { arguments.pushString(it.unionValue) }
|
||||
return arguments
|
||||
}
|
Reference in New Issue
Block a user