From 79fb48e863c3b3a3ad81cc47a63ad26f4f8f73c6 Mon Sep 17 00:00:00 2001 From: Seph Soliman Date: Tue, 25 Jul 2023 12:38:47 -0700 Subject: [PATCH] Hide statusbar when camera is open --- example/src/BarcodeScreenExample.tsx | 6 +++--- example/src/CameraExample.tsx | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/example/src/BarcodeScreenExample.tsx b/example/src/BarcodeScreenExample.tsx index 24fd4d9eb..438bcef40 100644 --- a/example/src/BarcodeScreenExample.tsx +++ b/example/src/BarcodeScreenExample.tsx @@ -5,14 +5,13 @@ import { View, TouchableOpacity, Image, - Dimensions, - Platform, SafeAreaView, + StatusBar, useWindowDimensions, Vibration, } from 'react-native'; import Camera from '../../src/Camera'; -import { CameraApi, CameraType, CaptureData } from '../../src/types'; +import { CameraApi, CameraType } from '../../src/types'; import { Orientation } from '../../src'; const flashImages = { @@ -91,6 +90,7 @@ const BarcodeExample = ({ onBack }: { onBack: () => void }) => { return ( +