Skip to content

Commit d5ceb55

Browse files
committed
Merge branch 'master' of github.com:doo/scanbot-barcode-scanner-sdk-example-react-native
2 parents 1daa2b0 + 2efa306 commit d5ceb55

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

App.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,6 @@ export class App extends React.Component {
202202
// Consider switching logging OFF in production builds for security and performance reasons!
203203
loggingEnabled: true,
204204
licenseKey: LICENSE_KEY,
205-
storageImageFormat: 'JPG',
206-
storageImageQuality: 80,
207205
// Optional storage path. See the method description!
208206
storageBaseDirectory: Utils.getCustomStoragePath()
209207
}).then(() => {

src/BarcodeResultList.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ const styles = StyleSheet.create({
5757
listItemContainer: {
5858
flex: 1,
5959
flexDirection: 'row',
60-
justifyContent: 'space-between',
61-
height: 60
60+
justifyContent: 'space-between'
6261
},
6362
listItemTextContainer: {
6463
flex: 1,
@@ -68,13 +67,11 @@ const styles = StyleSheet.create({
6867
paddingLeft: 5,
6968
paddingBottom: 5,
7069
fontSize: 14,
71-
height: 25,
7270
fontWeight: "600"
7371
},
7472
smallText: {
7573
paddingLeft: 5,
7674
fontSize: 14,
77-
height: 25,
7875
fontWeight: "400"
7976
},
8077
image: {

src/model/BarcodeResult.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ class BarcodeResult {
1212
static update(barcodeResult) {
1313

1414
BarcodeResult.imageUri = null;
15-
BarcodeResult.imageUri = 'file://' + barcodeResult.imageUri;
15+
if (barcodeResult.imageUri == undefined) {
16+
BarcodeResult.imageUri = undefined;
17+
} else {
18+
BarcodeResult.imageUri = 'file://' + barcodeResult.imageUri;
19+
}
20+
1621
BarcodeResult.clear();
1722

1823
for (let i = 0; i < barcodeResult.barcodes.length; i++) {

0 commit comments

Comments
 (0)