skywrace

feat: Implement full-size camera view

......@@ -8,9 +8,9 @@
* @format
*/
import {NativeBaseProvider} from 'native-base';
import {NativeBaseProvider, Text} from 'native-base';
import React, {useLayoutEffect} from 'react';
import {SafeAreaView, StyleSheet} from 'react-native';
import {StyleSheet} from 'react-native';
import {Camera, useCameraDevices} from 'react-native-vision-camera';
const App = () => {
......@@ -37,11 +37,11 @@ const App = () => {
return (
<NativeBaseProvider>
<SafeAreaView>
{device && (
<Camera isActive device={device} style={StyleSheet.absoluteFill} />
)}
</SafeAreaView>
{device ? (
<Camera isActive device={device} style={StyleSheet.absoluteFill} />
) : (
<Text>Loading camera..</Text>
)}
</NativeBaseProvider>
);
};
......
......@@ -486,6 +486,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 4APG4YR4B6;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = DetectApp/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
......@@ -512,6 +513,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 4APG4YR4B6;
INFOPLIST_FILE = DetectApp/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
......@@ -674,7 +676,7 @@
00E356F71AD99517003FC87E /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
defaultConfigurationName = Debug;
};
13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "DetectApp" */ = {
isa = XCConfigurationList;
......@@ -683,7 +685,7 @@
13B07F951A680F5B00A75B9A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
defaultConfigurationName = Debug;
};
83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "DetectApp" */ = {
isa = XCConfigurationList;
......@@ -692,7 +694,7 @@
83CBBA211A601CBA00E9B192 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
defaultConfigurationName = Debug;
};
/* End XCConfigurationList section */
};
......