react-native-vision-camera/android/src/main/java/com/mrousavy/camera
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
..
frameprocessor perf: Remove FrameProcessorPlugin HybridClass (#467) 2021-09-29 12:30:50 +02:00
parsers Get sizes per ImageFormat/PixelFormat (#119) 2021-04-13 13:01:24 +02:00
utils fix: Apply correct initial rotation on Android (#368) 2021-08-25 11:16:07 +02:00
CameraPackage.kt fix: Improve Android resource efficiency/cleanup (use class members for CoroutineScope and FrameProcessorThread) (#335) 2021-08-25 11:33:57 +02:00
CameraView.kt fix: Fix view-not-found race condition in C++ code (#511) 2021-10-11 18:27:23 +02:00
CameraView+Events.kt fix: Fix view-not-found race condition in C++ code (#511) 2021-10-11 18:27:23 +02:00
CameraView+Focus.kt Devops: KTLint to lint Kotlin code (#6) 2021-02-26 10:56:20 +01:00
CameraView+RecordVideo.kt chore: Move to /mrousavy/ (#224) 2021-06-21 22:42:46 +02:00
CameraView+TakePhoto.kt feat: Frame Processors for Android (#196) 2021-06-27 12:37:54 +02:00
CameraView+TakeSnapshot.kt feat: Frame Processors for Android (#196) 2021-06-27 12:37:54 +02:00
CameraViewManager.kt fix: Fix view-not-found race condition in C++ code (#511) 2021-10-11 18:27:23 +02:00
CameraViewModule.kt fix: Fix Android Stabilization Modes (#449) 2021-09-23 14:02:46 +02:00
Errors.kt fix: Fix dead link in parallel-video-processing-not-supported error 2021-08-02 11:21:23 +02:00