New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[iOS][Android] Add LocalAnthentication#supportedAuthenticationTypes #2450
Conversation
130ca69
to
013dca9
Compare
throw new Error(`Unrecognised authentitcation type returned: '${type}'`); | ||
} | ||
return acc ? `${acc}, ${typeName}` : typeName; | ||
}, ''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be better to use result.map(() => {...}).join(', ')
:)
typeName = 'FACIAL_RECOGNITION'; | ||
break; | ||
default: | ||
throw new Error(`Unrecognised authentitcation type returned: '${type}'`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
authentitcation
-> authentication
static BOOL EXIsTouchIDDevice() | ||
{ | ||
static BOOL isTouchIDDevice = NO; | ||
if (@available(iOS 11.0, *)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@available
shouldn't be there or at least not with iOS 11.0, because TouchID is available in iOS 10.0 too
@@ -6,6 +6,11 @@ | |||
#import <EXConstantsInterface/EXConstantsInterface.h> | |||
#import <EXLocalAuthentication/EXLocalAuthentication.h> | |||
|
|||
typedef NS_ENUM(NSInteger, EXAuthenticationType) { | |||
EXAuthenticationTypeFingerprint = 1, | |||
EXAuthenticationTypeFacialRecogniotion = 2, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EXAuthenticationTypeFacialRecogniotion
013dca9
to
81b83af
Compare
Why
Resolves #2447
Additionally I removed
react-native-svg
fromncl
that was causingncl
to crash. (this package is dependency ofexpo
notncl
)How
iOS -> used method that was available for
FaceID
and added similar forTouchID
.Android -> used method responsible for checking for Fingerprint API.
Test Plan
ncl#LocalAuthenticationScreen
has new button invoking this method.