Skip to content

Commit

Permalink
pull request changes fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
philipye314 committed Oct 12, 2023
1 parent ef918a8 commit e153bde
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
Binary file not shown.
7 changes: 2 additions & 5 deletions src/app/(BottomTabNavigation)/Cases/QRCodeScanner/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { BarCodeScanner, BarCodeScannerResult } from 'expo-barcode-scanner';
import { router } from 'expo-router';
import React, { useEffect, useState } from 'react';
import { Image, Text, View } from 'react-native';
import { TouchableOpacity } from 'react-native-gesture-handler';
import { Text, TouchableOpacity, View } from 'react-native';
import styles from './styles';

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

<Text>Current Scanning: {data}</Text>
<TouchableOpacity onPress={() => router.back()} style={styles.button}>
<Text>Go Back</Text>
Expand Down
8 changes: 0 additions & 8 deletions src/app/(BottomTabNavigation)/Cases/QRCodeScanner/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,4 @@ export default StyleSheet.create({
backgroundColor: '#339FFF',
padding: 10,
},

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

0 comments on commit e153bde

Please sign in to comment.