Showing
2 changed files
with
12 additions
and
10 deletions
... | @@ -8,9 +8,9 @@ | ... | @@ -8,9 +8,9 @@ |
8 | * @format | 8 | * @format |
9 | */ | 9 | */ |
10 | 10 | ||
11 | -import {NativeBaseProvider} from 'native-base'; | 11 | +import {NativeBaseProvider, Text} from 'native-base'; |
12 | import React, {useLayoutEffect} from 'react'; | 12 | import React, {useLayoutEffect} from 'react'; |
13 | -import {SafeAreaView, StyleSheet} from 'react-native'; | 13 | +import {StyleSheet} from 'react-native'; |
14 | import {Camera, useCameraDevices} from 'react-native-vision-camera'; | 14 | import {Camera, useCameraDevices} from 'react-native-vision-camera'; |
15 | 15 | ||
16 | const App = () => { | 16 | const App = () => { |
... | @@ -37,11 +37,11 @@ const App = () => { | ... | @@ -37,11 +37,11 @@ const App = () => { |
37 | 37 | ||
38 | return ( | 38 | return ( |
39 | <NativeBaseProvider> | 39 | <NativeBaseProvider> |
40 | - <SafeAreaView> | 40 | + {device ? ( |
41 | - {device && ( | 41 | + <Camera isActive device={device} style={StyleSheet.absoluteFill} /> |
42 | - <Camera isActive device={device} style={StyleSheet.absoluteFill} /> | 42 | + ) : ( |
43 | - )} | 43 | + <Text>Loading camera..</Text> |
44 | - </SafeAreaView> | 44 | + )} |
45 | </NativeBaseProvider> | 45 | </NativeBaseProvider> |
46 | ); | 46 | ); |
47 | }; | 47 | }; | ... | ... |
... | @@ -486,6 +486,7 @@ | ... | @@ -486,6 +486,7 @@ |
486 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | 486 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; |
487 | CLANG_ENABLE_MODULES = YES; | 487 | CLANG_ENABLE_MODULES = YES; |
488 | CURRENT_PROJECT_VERSION = 1; | 488 | CURRENT_PROJECT_VERSION = 1; |
489 | + DEVELOPMENT_TEAM = 4APG4YR4B6; | ||
489 | ENABLE_BITCODE = NO; | 490 | ENABLE_BITCODE = NO; |
490 | INFOPLIST_FILE = DetectApp/Info.plist; | 491 | INFOPLIST_FILE = DetectApp/Info.plist; |
491 | LD_RUNPATH_SEARCH_PATHS = ( | 492 | LD_RUNPATH_SEARCH_PATHS = ( |
... | @@ -512,6 +513,7 @@ | ... | @@ -512,6 +513,7 @@ |
512 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | 513 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; |
513 | CLANG_ENABLE_MODULES = YES; | 514 | CLANG_ENABLE_MODULES = YES; |
514 | CURRENT_PROJECT_VERSION = 1; | 515 | CURRENT_PROJECT_VERSION = 1; |
516 | + DEVELOPMENT_TEAM = 4APG4YR4B6; | ||
515 | INFOPLIST_FILE = DetectApp/Info.plist; | 517 | INFOPLIST_FILE = DetectApp/Info.plist; |
516 | LD_RUNPATH_SEARCH_PATHS = ( | 518 | LD_RUNPATH_SEARCH_PATHS = ( |
517 | "$(inherited)", | 519 | "$(inherited)", |
... | @@ -674,7 +676,7 @@ | ... | @@ -674,7 +676,7 @@ |
674 | 00E356F71AD99517003FC87E /* Release */, | 676 | 00E356F71AD99517003FC87E /* Release */, |
675 | ); | 677 | ); |
676 | defaultConfigurationIsVisible = 0; | 678 | defaultConfigurationIsVisible = 0; |
677 | - defaultConfigurationName = Release; | 679 | + defaultConfigurationName = Debug; |
678 | }; | 680 | }; |
679 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "DetectApp" */ = { | 681 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "DetectApp" */ = { |
680 | isa = XCConfigurationList; | 682 | isa = XCConfigurationList; |
... | @@ -683,7 +685,7 @@ | ... | @@ -683,7 +685,7 @@ |
683 | 13B07F951A680F5B00A75B9A /* Release */, | 685 | 13B07F951A680F5B00A75B9A /* Release */, |
684 | ); | 686 | ); |
685 | defaultConfigurationIsVisible = 0; | 687 | defaultConfigurationIsVisible = 0; |
686 | - defaultConfigurationName = Release; | 688 | + defaultConfigurationName = Debug; |
687 | }; | 689 | }; |
688 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "DetectApp" */ = { | 690 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "DetectApp" */ = { |
689 | isa = XCConfigurationList; | 691 | isa = XCConfigurationList; |
... | @@ -692,7 +694,7 @@ | ... | @@ -692,7 +694,7 @@ |
692 | 83CBBA211A601CBA00E9B192 /* Release */, | 694 | 83CBBA211A601CBA00E9B192 /* Release */, |
693 | ); | 695 | ); |
694 | defaultConfigurationIsVisible = 0; | 696 | defaultConfigurationIsVisible = 0; |
695 | - defaultConfigurationName = Release; | 697 | + defaultConfigurationName = Debug; |
696 | }; | 698 | }; |
697 | /* End XCConfigurationList section */ | 699 | /* End XCConfigurationList section */ |
698 | }; | 700 | }; | ... | ... |
-
Please register or login to post a comment