fix: Fix system/view-not-found error caused by setFrameProcessor race condition (#459)

* Remove `onLayout` hack

* Add `system/view-not-found` error
This commit is contained in:
Marc Rousavy
2021-09-27 14:35:35 +02:00
committed by GitHub
parent 17b1d1fda4
commit cbaffc20e6
2 changed files with 11 additions and 18 deletions

View File

@@ -43,7 +43,7 @@ export type CaptureError =
| 'capture/photo-not-enabled'
| 'capture/aborted'
| 'capture/unknown';
export type SystemError = 'system/no-camera-manager';
export type SystemError = 'system/no-camera-manager' | 'system/view-not-found';
export type UnknownError = 'unknown/unknown';
/**