Skip to content

Commit 2db46b3

Browse files
authored
Merge pull request #86 from klippa-app/development
Development > Master
2 parents 28cefbd + c91a116 commit 2db46b3

File tree

5 files changed

+13
-2
lines changed

5 files changed

+13
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.6
2+
3+
* Added `ContinueButtonText` to change the text on the finish screen for iOS.
4+
15
## 1.0.5
26

37
* Bumped Android to 4.0.10

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ Add or edit the file `android/app/src/main/res/values/strings.xml`, add the foll
368368

369369
### iOS
370370

371-
Use the following properties in the config when running `getCameraResult`: `ImageTooBrightMessage`, `ImageTooDarkMessage`, `DeleteButtonText`, `RetakeButtonText`, `CancelButtonText`, `CancelAndDeleteImagesButtonText`, `CancelConfirmationMessage`, `MoveCloserMessage`, `ImageMovingMessage`, `ImageLimitReachedMessage`, `OrientationWarningMessage`, `ImageColorOriginalText`, `ImageColorGrayscaleText`, `ImageColorEnhancedText`, `SaveCropButtonText`, `ExpandCropButtonText`, `CancelCropButtonText`, `DeleteEditButtonText`, `RotateEditButtonText`, `FilterEditButtonText`, `CropEditButtonText`, `SegmentedModeImageCountMessage`.
371+
Use the following properties in the config when running `getCameraResult`: `ImageTooBrightMessage`, `ImageTooDarkMessage`, `DeleteButtonText`, `RetakeButtonText`, `CancelButtonText`, `CancelAndDeleteImagesButtonText`, `CancelConfirmationMessage`, `MoveCloserMessage`, `ImageMovingMessage`, `ImageLimitReachedMessage`, `OrientationWarningMessage`, `ImageColorOriginalText`, `ImageColorGrayscaleText`, `ImageColorEnhancedText`, `ContinueButtonText`, `SaveCropButtonText`, `ExpandCropButtonText`, `CancelCropButtonText`, `DeleteEditButtonText`, `RotateEditButtonText`, `FilterEditButtonText`, `CropEditButtonText`, `SegmentedModeImageCountMessage`.
372372

373373
## How to change the image in the instructions?
374374

ios/KlippaScannerSDK.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,10 @@ class KlippaScannerSDK: NSObject {
260260
builder.klippaButtonTexts.expandCropButtonText = expandCropButtonText
261261
}
262262

263+
if let continueButtonText = config["ContinueButtonText"] as? String {
264+
builder.klippaButtonTexts.continueButtonText = continueButtonText
265+
}
266+
263267
if let saveCropButtonText = config["SaveCropButtonText"] as? String {
264268
builder.klippaButtonTexts.saveCropButtonText = saveCropButtonText
265269
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@klippa/react-native-klippa-scanner-sdk",
33
"title": "React Native Klippa Scanner SDK",
4-
"version": "1.0.5",
4+
"version": "1.0.6",
55
"description": "Allows you to take pictures with the Klippa Scanner SDK from React Native.",
66
"main": "index.js",
77
"files": [

types/index.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ export class CameraConfig {
170170
// The text inside of the color selection alert dialog button named enhanced.
171171
ImageColorEnhancedText?: string;
172172

173+
// The text to finish the scanner on the edit screen.
174+
ContinueButtonText?: string;
175+
173176
// The text inside of the cancel alert button.
174177
CancelAndDeleteImagesButtonText?: string;
175178

0 commit comments

Comments
 (0)