Skip to content

Commit

Permalink
[feat] implement routing to QRCodeScanner from Cases screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
ronniebeggs committed Oct 19, 2023
1 parent 7989155 commit 037940f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/app/(BottomTabNavigation)/Cases/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Link } from 'expo-router';
import { router } from 'expo-router';
import React, { useEffect, useState } from 'react';
import { FlatList, Text, TouchableOpacity, View } from 'react-native';

Expand Down Expand Up @@ -41,13 +41,11 @@ function CasesScreen() {
return (
<View style={styles.container}>
<View style={styles.headerContainer}>
<Link href="/QRCodeScanner/index.tsx" asChild>
<TouchableOpacity>
<View style={styles.circle}>
<Text>Camera</Text>
</View>
</TouchableOpacity>
</Link>
<TouchableOpacity onPress={() => router.push('/Cases/QRCodeScanner')}>
<View style={styles.circle}>
<Text>Camera</Text>
</View>
</TouchableOpacity>
</View>
<View style={styles.casesContainer}>
{isLoading ? (
Expand Down

0 comments on commit 037940f

Please sign in to comment.