react-native-vision-camera/src
Marc Rousavy 4a73cb96c1
fix: Fix view-not-found race condition in C++ code (#511)
* Add custom `onViewReady` event to get layout

`componentDidMount` is async, so the native view _might_ not exist yet causing a race condition in the `setFrameProcessor` code.

This PR fixes this by calling `setFrameProcessor` only after the native view has actually mounted, and to ensure that I created a custom event that fires at that point.

* Update CameraView.swift
2021-10-11 18:27:23 +02:00
..
expo-plugin fix: Fix expo plugin import path 2021-07-12 18:02:28 +02:00
hooks fix: Fix TypeScript relative imports (#358) 2021-08-16 10:45:41 +02:00
utils fix: Fix TypeScript relative imports (#358) 2021-08-16 10:45:41 +02:00
Camera.tsx fix: Fix view-not-found race condition in C++ code (#511) 2021-10-11 18:27:23 +02:00
CameraDevice.ts fix: Throw 'frame-processor/unavailable' error instead of normal JS Error (#461) 2021-09-27 14:44:09 +02:00
CameraError.ts fix: Throw 'frame-processor/unavailable' error instead of normal JS Error (#461) 2021-09-27 14:44:09 +02:00
CameraPosition.ts ESLint autofix 2021-02-20 17:07:10 +01:00
CameraPreset.ts ESLint autofix 2021-02-20 17:07:10 +01:00
CameraProps.ts feat: frameProcessorFps="auto" and automatic performance suggestions (throttle or increase FPS) (#393) 2021-09-06 16:27:16 +02:00
Frame.ts feat: Implement Frame.close() (#229) 2021-07-06 10:08:44 +02:00
globals.d.ts Revert "Update globals.d.ts" 2021-05-06 16:12:43 +02:00
index.ts feature: Frame Processors (iOS) (#2) 2021-05-06 14:11:55 +02:00
PhotoFile.ts docs: Fix Frame Processor install step and QualityPrioritization Order (#451) 2021-09-24 10:15:26 +02:00
Point.ts Bootstrap 2021-02-19 16:07:53 +01:00
Snapshot.ts feat: Frame Processors for Android (#196) 2021-06-27 12:37:54 +02:00
TemporaryFile.ts Update TemporaryFile.ts 2021-03-08 18:00:30 +01:00
VideoFile.ts chore: Move to /mrousavy/ (#224) 2021-06-21 22:42:46 +02:00