Skip to content

Releases: teslamotors/react-native-camera-kit

v14.0.0

31 Oct 00:02
Compare
Choose a tag to compare

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
  • Removed camera permission request on iOS and Android. This was removed due to the complexity of managing permissions on both platforms and it caused issues for some users. Using a separate permission library like zoontek's react-native-permissions is more flexible and you get to control when to prompt, show advanced dialogs, see what the status of the permission is, and re-prompt appropriately.
  • Temporary path moved to "Caches" directory. This helps users of Expo's expo-file-system library which only allows managing files in either Documents/ or Library/Caches directories.

What's Changed

  • Add iOS linter & report issues on PR by @DavidBertet in #634
  • Add namespace to build.gradle for AGP > 7 by @stetbern in #617
  • Add resize mode cover/contain by @lichstam in #644
  • Added code format to see type of code scanned by @android-imdad in #633
  • Added multi-lens zoom support for iPhone 12, 13, and 14 by @scarlac in #569
  • Added onZoom={e => e.nativeEvent.zoom} prop event handler that triggers when users pinch to zoom
  • Added rn-permissions recommendation by @scarlac in #606
  • Added zoom={1.0} prop that controls zoom by @scarlac in #559
  • Allow disabling the photo capture shutter sound on Android (#583) by @scarlac in #600
  • Chore: add types by @Kazion500 in #505
  • Chore: expose a method to toggle the torch light in Camera component by @yousrasd in https://github.com/teslamotors/react-native-
  • Fix #614. "onError" method needs to be declared by @DavidBertet in #630
  • Fix barcode screen top button size by @DavidBertet in #631
  • Fix linting error by @DavidBertet in #570
  • Fix: Correct onScale method signature in CKCamera.kt (again) by @elliottkember in #592
  • Fix: Correct onScale method signature in CKCamera.kt by @coreyphillips in #551
  • Fixed #517. iOS simulator pictures are PNG instead of JPEG by @DavidBertet in #548
  • Fixed focusMode and zoomMode not being enabled by default
  • Fixed orientation on iPads when starting in landscape mode 4892d53
  • 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)
  • Fixed QR scanner not always picking up clear codes by @scarlac in #599
  • Fixed viewport not rotating when device UI rotates (necessary for iPads without Stage Manager, or non-orientation locked UIs) by @summer-wu in #542
  • Hide statusbar when camera is open
  • Improve type definition & README by @DavidBertet in #545
  • Improved expo-file-system (EXFS) support, as EXFS.moveAsync() will refuse to move files stored in the /tmp/ directory. So we now store in the Caches folder instead, specifically ~/Library/Caches//com.tesla.react-native-camera-kit/*.
  • Include documentation to use expo plugin by @pettomartino in #588
  • Objective-C -> Swift migration by @DavidBertet in #547
  • Removed lodash as an explicit dependency 289696d
  • Return height/width of capture on iOS by @DavidBertet in #646
  • Update build target to iOS 11 by @elliottkember in #603
  • Update example to react native ^0.71.0 by @DavidBertet in #544
  • Update README.md by @aviswaroop in #582
  • Update RNCameraKitModule.kt with KDoc by @dhiasaadlaui in #575

Android only

New Contributors

Full Changelog: v13.0.0...v14.0.0

v14.0.0-beta14

15 May 02:23
Compare
Choose a tag to compare
v14.0.0-beta14 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: v14.0.0-beta13...v14.0.0-beta14

v14.0.0-beta13

11 Oct 17:27
Compare
Choose a tag to compare
v14.0.0-beta13 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: v14.0.0-beta11...v14.0.0-beta13

v14.0.0-beta11

06 Aug 18:02
Compare
Choose a tag to compare

v14.0.0-beta9

01 Aug 02:33
Compare
Choose a tag to compare
v14.0.0-beta9 Pre-release
Pre-release

What's Changed

Android only

Full Changelog: v14.0.0-beta8...v14.0.0-beta9

v14.0.0-beta8

25 Jul 19:41
Compare
Choose a tag to compare

v14.0.0-beta7

25 Jul 17:01
Compare
Choose a tag to compare
v14.0.0-beta7 Pre-release
Pre-release

Changes:

  • Removed lodash as an explicit dependency 289696d
  • Fixed orientation on iPads when starting in landscape mode 4892d53

Full Changelog: v14.0.0-beta6...v14.0.0-beta7

v14.0.0-beta6

20 Jul 20:30
Compare
Choose a tag to compare
v14.0.0-beta6 Pre-release
Pre-release

Changes

  • Improved expo-file-system (EXFS) support, as EXFS.moveAsync() will refuse to move files stored in the /tmp/ directory. So we now store in the Caches folder instead, specifically ~/Library/Caches/<bundleid>/com.tesla.react-native-camera-kit/*.

Full Changelog: v14.0.0-beta5...v14.0.0-beta6

v14.0.0-beta5

20 Jul 16:46
Compare
Choose a tag to compare
v14.0.0-beta5 Pre-release
Pre-release

Fixed 'postinstall' script that would cause a failure after yarn add .. on beta4.

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

v14.0.0-beta4

19 Jul 23:46
Compare
Choose a tag to compare
v14.0.0-beta4 Pre-release
Pre-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