Android App Development
iOS App Development
Flutter 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 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
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.
or
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*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
You can use this package for passcode authenticate.
https://www.npmjs.com/package/react-native-passcode-auth
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
All communication is done through a ticket system. I appreciate the regular almost daily updates of what is being worked on, and communicating changes or updates is easy through this system. Mobikul's response timeframe is quick.
Josh Arnold
Owner, Shop ATV Escape
USA
India
Global
Name
Email
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.