Releases: teslamotors/react-native-camera-kit
Releases · teslamotors/react-native-camera-kit
v14.0.0-beta4
Breaking changes
- Removed the
CameraScreen
component. Copy-paste theexample/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 theCameraScreen
component was effectively just theCamera
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 declarativetorchMode="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
andonZoom
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
- @DavidBertet made their first contribution in #544
- @coreyphillips made their first contribution in #551
Full Changelog: v14.0.0-beta3...v14.0.0-beta4
v14.0.0-beta3
Bug Fixes:
- Fixed viewport not rotating when device UI rotates (necessary for iPads without Stage Manager, or non-orientation locked UIs) by @summer-wu in #542
- chore: expose a method to toggle the torch light in Camera component by @yousrasd in https://github.com/teslamotors/react-native-
- chore: add types by @Kazion500 in #505
Security Updates
- Bump metadata-extractor to 2.18.0 version to avoid 2.12.0 vulnerabilities by @jorgepalacio in #493
camera-kit/pull/523 - Bump ua-parser-js from 0.7.31 to 0.7.33 by @dependabot in #521
- Bump ua-parser-js from 0.7.31 to 0.7.33 in /example by @dependabot in #520
- Bump minimatch from 3.0.4 to 3.1.2 by @dependabot in #503
- Bump minimatch from 3.0.4 to 3.1.2 in /example by @dependabot in #502
- Bump decode-uri-component from 0.2.0 to 0.2.2 by @dependabot in #507
- Bump qs from 6.5.2 to 6.5.3 by @dependabot in #509
- Bump decode-uri-component from 0.2.0 to 0.2.2 in /example by @dependabot in #506
- Bump json5 from 1.0.1 to 1.0.2 by @dependabot in #513
- Bump simple-plist from 1.1.1 to 1.3.1 by @dependabot in #469
- Bump async from 2.6.3 to 2.6.4 by @dependabot in #466
- Bump async from 2.6.3 to 2.6.4 in /example by @dependabot in #467
- Bump simple-plist from 1.1.1 to 1.3.1 in /example by @dependabot in #468
New Contributors
- @jorgepalacio made their first contribution in #493
- @yousrasd made their first contribution in #523
- @summer-wu made their first contribution in #542
- @Kazion500 made their first contribution in #505
Full Changelog: v13.0.0...v14.0.0-beta3
v14.0.0-beta2
Breaking changes
- 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 eitherDocuments/
orLibrary/Caches
directories.
Full Changelog: v13.0.0...v14.0.0-beta2
v14.0.0-beta1
Breaking changes
- 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.
Full Changelog: v13.0.0...v14.0.0-beta1
v13.0.0
What's Changed
- add Interleaved2of5 to supported barcode types on iOS by @stetbern in #481
- Barcode scanner does not work in some android devices by @cassioseffrin in #465
- v13 by @scarlac in #491
Breaking changes
- Removed saveToCameraRoll & saveToCameraRollWithPhUrl. Please use react-native-cameraroll instead.
New Contributors
- @stetbern made their first contribution in #481
- @cassioseffrin made their first contribution in #465
Full Changelog: v12.1.0...v13.0.0
v12.1.0
What's Changed
- Upgrade dependencies to latest stable; show square on tap-to-focus by @savv in #442
- chore: Add Custom Styles to Components via Props by @DibyajyotiMishra in #433
- Fix: Minor typo mistake by @bobychaudhary in #437
- fix: resolve saveToCameraRoll issue by @Balaji-Kotni in #445
- package.json should have source path by @savv in #441
- Fix iOS crash when permisions denied by @juancstlm in #458
- Fixed build issues, defaultProps by @scarlac in #461
- Bump minimist from 1.2.5 to 1.2.6 by @dependabot in #452
- Bump minimist from 1.2.5 to 1.2.6 in /example by @dependabot in #451
- Bump plist from 3.0.1 to 3.0.5 in /example by @dependabot in #454
- Bump ansi-regex from 3.0.0 to 3.0.1 in /example by @dependabot in #453
- Bump plist from 3.0.1 to 3.0.5 by @dependabot in #455
- Bump ua-parser-js from 0.7.22 to 0.7.31 by @dependabot in #444
- Bump ua-parser-js from 0.7.22 to 0.7.31 in /example by @dependabot in #443
New Contributors
- @DibyajyotiMishra made their first contribution in #433
- @savv made their first contribution in #442
- @bobychaudhary made their first contribution in #437
- @Balaji-Kotni made their first contribution in #445
- @juancstlm made their first contribution in #458
Full Changelog: v12.0.0...v12.1.0
v12.0.0
What's Changed
- TypeScript 4.2
- Added more types
- Android build fixes
- Added
saveToCameraRoll
for Android - Removed Android dependency on
com.google.zxing:core
andandroidx.core:core-ktx
- Fixed Android media type being
jpg
instead ofjpeg
(@Syar-tech and @AlexKLWS)
New Contributors
- @Syar-tech made their first contribution in #407
- @AlexKLWS made their first contribution in #429
- @msftenhanceprovenance made their first contribution in #421
- @wilkuintheair made their first contribution in #423
Full Changelog: v11.2.0...v12.0.0
v12.0.0-beta3
TypeScript 4.2, saveToCameraRoll for Android and more
v11.2.0
Whats new:
- Adding null safety check on RNCameraKitModule - Thanks @bruce-acloset
- Updated Camera object to be instance of forwardRef function - Thanks @kshahzada
- Added onOrientationChange callback - Thanks @scarlac
Bug Fixes
- Reenable Bottom Left Bottom Button
Maintenance
- Bump dependencies
Note: v11.2.1 is the same as v11.2.0
v11.1.0
Whats new:
- Updates to readme
- CI Improvements
- Update Gradle version - Thanks @EwoutH
Bug Fixes
- Fixed missing left button on CameraScreen
- Fixed Xcode 12 compatibility and podspec versioning - Thanks @nvojnovic!