Toggle navigation
Toggle navigation
This project
Loading...
Sign in
skywrace
/
drowsiness_detector
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
skywrace
2022-06-06 11:51:58 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
27240ac84dde4af54b86f30eea3e3a6cf6bb94f6
27240ac8
1 parent
569eea75
feat: Implement full-size camera view
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
DetectApp/App.tsx
DetectApp/ios/DetectApp.xcodeproj/project.pbxproj
DetectApp/App.tsx
View file @
27240ac
...
...
@@ -8,9 +8,9 @@
* @format
*/
import {NativeBaseProvider} from 'native-base';
import {NativeBaseProvider
, Text
} from 'native-base';
import React, {useLayoutEffect} from 'react';
import {S
afeAreaView, S
tyleSheet} 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 && (
{device ? (
<Camera isActive device={device} style={StyleSheet.absoluteFill} />
) : (
<Text>Loading camera..</Text>
)}
</SafeAreaView>
</NativeBaseProvider>
);
};
...
...
DetectApp/ios/DetectApp.xcodeproj/project.pbxproj
View file @
27240ac
...
...
@@ -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 */
};
...
...
Please
register
or
login
to post a comment