* Reformat

* Prettier: Print Width 140

* SwiftFormat: Disable `organizeDeclarations`

* React Helpers -> React Utils

* Use bundle exec for pods

* Disable Hermes in Example

* Create clean.sh

* Update package.json

* Re-generate lockfiles

* Add bundle install step to bootstrap
This commit is contained in:
Marc Rousavy
2021-03-31 15:43:29 +02:00
committed by GitHub
parent 67b72682b4
commit 7c33839e36
24 changed files with 993 additions and 996 deletions

View File

@@ -13,16 +13,12 @@ private var delegatesReferences: [NSObject] = []
// MARK: - PhotoCaptureDelegate
class PhotoCaptureDelegate: NSObject, AVCapturePhotoCaptureDelegate {
// MARK: Lifecycle
required init(promise: Promise) {
self.promise = promise
super.init()
delegatesReferences.append(self)
}
// MARK: Internal
func photoOutput(_: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
defer {
delegatesReferences.removeAll(where: { $0 == self })