-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: display cropped selfie (#201)
- Loading branch information
Showing
66 changed files
with
538 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
diff --git a/node_modules/expo-face-detector/ios/EXFaceDetector.podspec b/node_modules/expo-face-detector/ios/EXFaceDetector.podspec | ||
index ed661e3..9cf6103 100644 | ||
--- a/node_modules/expo-face-detector/ios/EXFaceDetector.podspec | ||
+++ b/node_modules/expo-face-detector/ios/EXFaceDetector.podspec | ||
@@ -19,10 +19,10 @@ Pod::Spec.new do |s| | ||
# even though `GoogleMLKit/FaceDetection` depends on all `MLKit*` references below | ||
# framework generation code (prebuilds) cannot locate them properly, so these are defined explicitly | ||
# TODO: research why xcodegen fails to detect dependencies of dependencies (resulted .xcodeproj is missing them) | ||
- s.dependency 'GoogleMLKit/FaceDetection', '2.6.0' | ||
- s.dependency 'MLKitFaceDetection', '1.5.0' | ||
- s.dependency 'MLKitCommon', '5.0.0' | ||
- s.dependency 'MLKitVision', '3.0.0' | ||
+ s.dependency 'GoogleMLKit/FaceDetection', '4.0.0' | ||
+ s.dependency 'MLKitFaceDetection', '3.0.0' | ||
+ s.dependency 'MLKitCommon', '9.0.0' | ||
+ s.dependency 'MLKitVision', '5.0.0' | ||
|
||
if !$ExpoUseSources&.include?(package['name']) && ENV['EXPO_USE_SOURCE'].to_i == 0 && File.exist?("#{s.name}.xcframework") && Gem::Version.new(Pod::VERSION) >= Gem::Version.new('1.10.0') | ||
s.source_files = "#{s.name}/**/*.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
src/screens/FaceRecognitionFlow/components/CameraPermissionNotice/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
// SPDX-License-Identifier: ice License 1.0 | ||
|
||
import {COLORS} from '@constants/colors'; | ||
import {Images} from '@images'; | ||
import {PopUpButton} from '@screens/Modals/PopUp/components/PopUpButton'; | ||
import {t} from '@translations/i18n'; | ||
import {font} from '@utils/styles'; | ||
import React from 'react'; | ||
import {Image, Linking, ScrollView, StyleSheet, Text, View} from 'react-native'; | ||
import {rem} from 'rn-units'; | ||
|
||
export function CameraPermissionNotice() { | ||
return ( | ||
<ScrollView | ||
style={styles.container} | ||
contentContainerStyle={styles.contentContainer}> | ||
<View style={styles.imageContainer}> | ||
<Image source={Images.badges.cameraPermission} /> | ||
</View> | ||
<Text style={styles.title}>{t('face_auth.camera_permission.title')}</Text> | ||
<Text style={styles.description}> | ||
{t('face_auth.camera_permission.description')} | ||
</Text> | ||
<View style={styles.footerContainer}> | ||
<PopUpButton | ||
text={t('face_auth.camera_permission.action')} | ||
style={styles.button} | ||
onPress={() => Linking.openSettings()} | ||
/> | ||
</View> | ||
</ScrollView> | ||
); | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
backgroundColor: COLORS.white, | ||
}, | ||
contentContainer: { | ||
flexGrow: 1, | ||
backgroundColor: COLORS.white, | ||
}, | ||
imageContainer: { | ||
alignSelf: 'center', | ||
paddingTop: rem(88), | ||
}, | ||
title: { | ||
paddingTop: rem(10), | ||
...font(24, 34, 'black', 'primaryDark', 'center'), | ||
}, | ||
description: { | ||
paddingTop: rem(16), | ||
paddingHorizontal: rem(48), | ||
...font(14, 20, 'medium', 'secondary', 'center'), | ||
}, | ||
footerContainer: { | ||
flex: 1, | ||
justifyContent: 'flex-end', | ||
paddingHorizontal: rem(80), | ||
}, | ||
button: { | ||
height: rem(40), | ||
width: '100%', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.