Skip to content

Commit

Permalink
properly hide snapped image if none exists, rm hardcoded heights of c…
Browse files Browse the repository at this point in the history
…ells, rm unavailable options
  • Loading branch information
Nikituh committed Mar 16, 2020
1 parent c1f33e3 commit c83c2f2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 0 additions & 2 deletions App.tsx
Expand Up @@ -202,8 +202,6 @@ export class App extends React.Component {
// Consider switching logging OFF in production builds for security and performance reasons!
loggingEnabled: true,
licenseKey: LICENSE_KEY,
storageImageFormat: 'JPG',
storageImageQuality: 80,
// Optional storage path. See the method description!
storageBaseDirectory: Utils.getCustomStoragePath()
}).then(() => {
Expand Down
5 changes: 1 addition & 4 deletions src/BarcodeResultList.tsx
Expand Up @@ -57,8 +57,7 @@ const styles = StyleSheet.create({
listItemContainer: {
flex: 1,
flexDirection: 'row',
justifyContent: 'space-between',
height: 60
justifyContent: 'space-between'
},
listItemTextContainer: {
flex: 1,
Expand All @@ -68,13 +67,11 @@ const styles = StyleSheet.create({
paddingLeft: 5,
paddingBottom: 5,
fontSize: 14,
height: 25,
fontWeight: "600"
},
smallText: {
paddingLeft: 5,
fontSize: 14,
height: 25,
fontWeight: "400"
},
image: {
Expand Down
7 changes: 6 additions & 1 deletion src/model/BarcodeResult.ts
Expand Up @@ -12,7 +12,12 @@ class BarcodeResult {
static update(barcodeResult) {

BarcodeResult.imageUri = null;
BarcodeResult.imageUri = 'file://' + barcodeResult.imageUri;
if (barcodeResult.imageUri == undefined) {
BarcodeResult.imageUri = undefined;
} else {
BarcodeResult.imageUri = 'file://' + barcodeResult.imageUri;
}

BarcodeResult.clear();

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

0 comments on commit c83c2f2

Please sign in to comment.