Skip to content

Commit

Permalink
did branch
Browse files Browse the repository at this point in the history
  • Loading branch information
philipye314 committed Oct 8, 2023
1 parent 8f58980 commit db747ee
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
6 changes: 3 additions & 3 deletions src/app/(BottomTabNavigation)/Cases/QRCodeScanner/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BarCodeScanner, BarCodeScannerResult } from 'expo-barcode-scanner';
import { router } from 'expo-router';
import React, { useEffect, useState } from 'react';
import { Image, StyleSheet, Text, View } from 'react-native';
import { Image, Text, View } from 'react-native';
import { TouchableOpacity } from 'react-native-gesture-handler';
import styles from './styles';

Expand Down Expand Up @@ -42,9 +42,9 @@ function QRCodeScannerScreen() {
<Text>Add a new case</Text>
<BarCodeScanner
onBarCodeScanned={handleBarCodeScanned}
style={[StyleSheet.absoluteFillObject]}
style={[styles.scanner]} // StyleSheet.absoluteFillObject,
/>
<Image style={styles.crosshair} source={require('./img/silly.png')} />
<Image style={styles.crosshair} source={require('./img/crosshair.png')} />

<Text>Current Scanning: {data}</Text>
<TouchableOpacity onPress={() => router.back()} style={styles.button}>
Expand Down
13 changes: 8 additions & 5 deletions src/app/(BottomTabNavigation)/Cases/QRCodeScanner/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ export default StyleSheet.create({
},

scanner: {
height: 400,
width: 400,
height: 300,
width: 300,
border: 'solid',
borderWidth: 5,
borderWidth: 3,
},

button: {
Expand All @@ -23,7 +23,10 @@ export default StyleSheet.create({
},

crosshair: {
height: 400,
width: 400,
position: 'absolute',
top: 120,
left: -90,
height: 600,
width: 600,
},
});

0 comments on commit db747ee

Please sign in to comment.