From 037940f58a0d55b9c14252fa1b43ab45cb022947 Mon Sep 17 00:00:00 2001 From: Ronnie Beggs Date: Wed, 18 Oct 2023 19:26:14 -0700 Subject: [PATCH] [feat] implement routing to QRCodeScanner from Cases screen. --- src/app/(BottomTabNavigation)/Cases/index.tsx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/app/(BottomTabNavigation)/Cases/index.tsx b/src/app/(BottomTabNavigation)/Cases/index.tsx index 473a6f4d..61b5c674 100644 --- a/src/app/(BottomTabNavigation)/Cases/index.tsx +++ b/src/app/(BottomTabNavigation)/Cases/index.tsx @@ -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'; @@ -41,13 +41,11 @@ function CasesScreen() { return ( - - - - Camera - - - + router.push('/Cases/QRCodeScanner')}> + + Camera + + {isLoading ? (