Skip to content
This repository was archived by the owner on Aug 19, 2024. It is now read-only.

Version 1.0.6

Choose a tag to compare

@humphreyja humphreyja released this 15 Jan 23:18
· 58 commits to master since this release
9985486

This version fixes android preview aspect ratio stretching.

Important updates since the v1.0.0 tag include:

  • Changes storage location to the cache directory under the folder name RNRectangleScanner (available via export CACHE_FOLDER_NAME). This allows using something like rn-fetch-blob to clear the cache folder OTHERWISE YOU WILL BE STORING ALL THE CAPTURED PHOTOS YOU HAVE EVER TAKEN. This is a bug I noticed with a lot of the scanner variations out there.

  • If a rectangle is not found, the original and cropped image path will reference the same image. This is faster and more efficient

  • Runs the iOS capture code in a different thread (doesn't freeze the preview)

  • Fixes an issue in iOS when converting a CIImage to a UIImage (fails to save the preview)

  • Includes a onErrorProcessingImage callback to report errors in the capture process.

  • Fixes an issue in android where the rectangle was rotated incorrectly