Native Shopify Mobile App with 20 new features
Kickstart your hyperlocal marketplace in Corona pandemic with a starter guide
Android App Development
iOS App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 220.127.116.11 release ready!
Owner and Founder. Opencart
In this blog, we are going to integrate Touch id authentication in React Native.
We have a Touch Id authentication library for biometric authentication and Face Id it is working for both platforms Android and IOS.
Firstly, We have to install the package by using npm or yarn.
Secondly, We need to link the library by using :
Now the dependency configuration has completed.
After this, we need the permissions.
In your Manifest file for android :
for IOS in your info.plist file :
After providing all this permission just need to import the package and use its function to authenticate function it can take 2 parameters but it is not required.
First Parameter: The first parameter is a string parameter that stands for the title of the dialog box.
Second Parameter: Second parameter is an object that container 3 values title (for android only), color (for android only), and fallbackLabel (for ios only). the object is only for changing the color and title.
We have one function called isSupported, By the help of this function, you can check that the device is support authentication or face authentication. This function also checks that your device has any registered fingerprint or not.
Here we have the final code:
I hope it will help you to integrate fingerprint authentication in your react native apps.
Reference link:- https://www.npmjs.com/package/react-native-touch-id
Your email address will not be published. Required fields are marked*
Save my name email and website in this browser for the next time I comment.
You can use this package for passcode authenticate.
Great Product, Great Team, and Great Support Service. And if you want to add more features to the product, they can submit any idea that comes to your mind. They really care about their clients and we are really happy and honored to deal with Webkul.
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.