Skip to content

v14.0.0-beta4

Pre-release
Pre-release
Compare
Choose a tag to compare
@scarlac scarlac released this 19 Jul 23:46
· 103 commits to master since this release

Breaking changes

  • Removed the CameraScreen component. Copy-paste the example/src/CameraExample.tsx file to get a good replacement starting point.
    Why? We kept getting feature requests, and it's not possible for us to design and create a generic, good-looking UI that fits all use cases. The ultimate feature set for the CameraScreen component was effectively just the Camera component, thus it made sense to remove it.
  • Objective-C -> Swift migration. May break things unintentionally
  • showFrame is now positioned differently than before on Android (centered)
  • setTorchMode was removed as it was un-React like. Please use the declarative torchMode="on" instead
  • Pinch to zoom behavior changed slightly. While not technically breaking, it changes the camera zoom behavior. Override the behavior using the new zoom and onZoom if you want to customize how fast it zooms

What's Changed

  • Objective-C -> Swift migration by @DavidBertet in #547
  • Added zoom={1.0} prop that controls zoom by @scarlac in #559
  • Added onZoom={e => e.nativeEvent.zoom} prop event handler that triggers when users pinch to zoom
  • Fixed #517. iOS simulator pictures are PNG instead of JPEG by @DavidBertet in #548
  • Fixed preview and capture orientation on iOS when device orientation lock is on (it will now use the accelerometer when possible, defaulting to the interface orientation)
  • Update example to react native ^0.71.0 by @DavidBertet in #544
  • Improve type definition & README by @DavidBertet in #545
  • Bump fast-xml-parser from 4.2.2 to 4.2.4 in /example by @dependabot in #549
  • Fix: Correct onScale method signature in CKCamera.kt by @coreyphillips in #551
  • Bump semver from 5.7.1 to 5.7.2 by @dependabot in #558
  • Bump semver from 5.7.1 to 5.7.2 in /example by @dependabot in #557
  • Bump fast-xml-parser from 4.2.4 to 4.2.5 in /example by @dependabot in #555
  • Bump word-wrap from 1.2.3 to 1.2.4 by @dependabot in #563

New Contributors

Full Changelog: v14.0.0-beta3...v14.0.0-beta4