From 57acc844d9d0655f5abfdc9abea59a721eb3d7af Mon Sep 17 00:00:00 2001 From: shackerman Date: Tue, 14 May 2024 16:40:24 -0700 Subject: [PATCH 1/3] fix: replaced switch camera text with symbol --- examples/objectdetection/src/CameraStream.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/examples/objectdetection/src/CameraStream.tsx b/examples/objectdetection/src/CameraStream.tsx index 9913cf3..04e257f 100644 --- a/examples/objectdetection/src/CameraStream.tsx +++ b/examples/objectdetection/src/CameraStream.tsx @@ -28,6 +28,7 @@ import type { RootTabParamList } from "./navigation"; import type { BottomTabScreenProps } from "@react-navigation/bottom-tabs"; import { useSettings } from "./app-settings"; import { useDebounce } from "./useDebounce"; +import Ionicons from "react-native-vector-icons/Ionicons"; interface Detection { label: string; @@ -132,7 +133,7 @@ export const CameraStream: React.FC = () => { ))} - Switch Camera + ); @@ -260,10 +261,7 @@ const styles = StyleSheet.create({ top: 20, right: 20, }, - cameraSwitchButtonText: { - color: "white", - fontSize: 16, - }, + }); const colorNames = [ From 67c7ef55ee5f41c38d64cc6bf873ee1ea262f36d Mon Sep 17 00:00:00 2001 From: shackerman Date: Mon, 20 May 2024 19:46:17 -0700 Subject: [PATCH 2/3] fix: added fragment to satisfy the linter --- examples/objectdetection/src/CameraStream.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/objectdetection/src/CameraStream.tsx b/examples/objectdetection/src/CameraStream.tsx index 04e257f..5672436 100644 --- a/examples/objectdetection/src/CameraStream.tsx +++ b/examples/objectdetection/src/CameraStream.tsx @@ -133,7 +133,9 @@ export const CameraStream: React.FC = () => { ))} - + <> + + ); From d05440c48fc4bdeecb1ad2ebf46a0001dd92b12e Mon Sep 17 00:00:00 2001 From: shackerman Date: Tue, 21 May 2024 15:54:59 -0700 Subject: [PATCH 3/3] chore: removed an unnecessary fragment --- examples/objectdetection/src/CameraStream.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/objectdetection/src/CameraStream.tsx b/examples/objectdetection/src/CameraStream.tsx index 5672436..840883d 100644 --- a/examples/objectdetection/src/CameraStream.tsx +++ b/examples/objectdetection/src/CameraStream.tsx @@ -133,9 +133,7 @@ export const CameraStream: React.FC = () => { ))} - <> - );