* Add resize mode cover/contain
* Add resize to simulator, change type enum and add listener for resize
* Add resize to camera example
* Add description of resizeMode to readme
* Add description of resizeMode to readme
* Update ios/ReactNativeCameraKit/CameraView.swift
---------
Co-authored-by: Seph Soliman <github@seph.dk>
* added code format to see type of code scanned
* Update ios/ReactNativeCameraKit/SimulatorCamera.swift
Changed supported barcode types to list of CodeFormat
Co-authored-by: David Bertet <11665957+DavidBertet@users.noreply.github.com>
* Update android/src/main/java/com/rncamerakit/CodeFormat.kt
Added annotation for int type
Co-authored-by: David Bertet <11665957+DavidBertet@users.noreply.github.com>
* Added CodeFormat types and fixed an indentation on a function to match other functions
* Replaced AVMetadataObject with CodeFormat in all files
* Updated code format to case Iterable and changed supportedBarcodeType to code format cases
* Update src/Camera.d.ts
---------
Co-authored-by: David Bertet <11665957+DavidBertet@users.noreply.github.com>
Co-authored-by: Seph Soliman <github@seph.dk>
Remove cameraType from the class, use local variable only to avoid unwanted side effects
Move thumbnail creation into delegate, to be consistent and return only data
Make `counterRotatedCaptureVideoOrientationFrom` private
Refactor slightly `update(pinchVelocity`
Remove `setTorchMode`, add `scanThrottleDelay` from React types