TouchID / Fingerprint exposed through SDK

#1

Hi, I read in your Aug 7, 2016 blog post that you’ve got the native code in place for TouchID but not in the SDK. I don’t want to brake out of Expo so I just want to make 100% sure I did not miss you guys adding this to the SDK. Any help on the best way to tackle this would also be great.

2 Likes
#2

hello! you can check out and example of using it here: https://github.com/expo/native-component-list/blob/a5e98542b7a07350d027c43385a11cc14a9ad92e/screens/ExponentScreen.js#L729-L774

we haven’t documented in our official docs yet because we intended to create a wrapper so there is a single API on both platforms. we might just go ahead and document the current API and add a layer on top of that later on.

3 Likes
#3

For others looking at this, here is the api (https://github.com/expo/expo/blob/master/ios/Exponent/Versioned/Modules/Api/EXFingerprint.m) :

  • hasHardwareAsync

  • isEnrolledAsync

  • authenticateAsync

1 Like
#4

API doc: https://docs.expo.io/versions/latest/sdk/fingerprint.html

1 Like
closed #5