Overview:
React Native Fingerprint Scanner is a library for authenticating users using Fingerprint (TouchID) on both iOS and Android devices. The project is currently seeking maintainers to help continue its development. The library integrates with the Local Authentication framework on iOS and provides support for newer Android devices using the BiometricPrompt library.
Features:
- TouchID Authentication: Authenticate users using their fingerprint on both iOS and Android devices.
- Local Authentication Framework: Utilizes the Local Authentication framework on iOS for secure authentication.
- BiometricPrompt Support: Supports the new native Android BiometricPrompt library for devices running Android version 23 (M) and above.
- Legacy Support: Deprecated support for legacy Android Fingerprint API library for Samsung & MeiZu phones on older Android versions.
Installation:
Automatic Configuration (RN >= 0.60):
- Run npm install react-native-fingerprint-scanner
- Follow the specific platform setup for iOS and Android below.
Manual Configuration iOS:
- Add ReactNativeFingerprintScanner.xcodeproj to XCode.
- Link the library “libReactNativeFingerprintScanner.a” in XCode.
- Run the project (Cmd+R).
Manual Configuration Android:
- Add ReactNativeFingerprintScannerPackage to MainApplication.java.
- Update settings.gradle and build.gradle as mentioned in the documentation.
- Add necessary permissions to the AndroidManifest.xml file.
Summary:
React Native Fingerprint Scanner is a useful library for implementing Fingerprint authentication in React Native apps. It offers features like TouchID support, BiometricPrompt integration, and support for legacy Android devices. By following the simple installation steps, developers can enhance the security of their applications with biometric authentication. Consider contributing to this project if you are interested in its maintenance and further development.