diff --git a/android/src/main/java/com/mrousavy/camera/CameraViewModule.kt b/android/src/main/java/com/mrousavy/camera/CameraViewModule.kt index 7672b15..fb85308 100644 --- a/android/src/main/java/com/mrousavy/camera/CameraViewModule.kt +++ b/android/src/main/java/com/mrousavy/camera/CameraViewModule.kt @@ -181,7 +181,7 @@ class CameraViewModule(reactContext: ReactApplicationContext) : ReactContextBase val cameraDevices: WritableArray = Arguments.createArray() - manager.cameraIdList.forEach loop@{ id -> + manager.cameraIdList.filter{ id -> id.toIntOrNull() != null }.forEach loop@{ id -> val cameraSelector = CameraSelector.Builder().byID(id).build() val characteristics = manager.getCameraCharacteristics(id)