react-native-fingerprint-scanner
Advanced tools
Comparing version 2.5.0 to 2.6.0
{ | ||
"name": "react-native-fingerprint-scanner", | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"description": "React Native Fingerprint Scanner for Android and iOS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -55,3 +55,3 @@ # React Native Fingerprint Scanner | ||
1. Open up `android/app/src/main/java/[...]/MainActivity.java` | ||
1. Open up `android/app/src/main/java/[...]/MainApplication.java` | ||
- Add `import com.hieuvp.fingerprint.ReactNativeFingerprintScannerPackage;` to the imports at the top of the file | ||
@@ -69,2 +69,19 @@ - Add `new ReactNativeFingerprintScannerPackage()` to the list returned by the `getPackages()` method | ||
### App Permissions | ||
Add the following permissions to their respective files: | ||
In your `AndroidManifest.xml`: | ||
```xml | ||
<uses-permission android:name="android.permission.USE_FINGERPRINT" /> | ||
``` | ||
In your `Info.plist`: | ||
```xml | ||
<key>NSFaceIDUsageDescription</key> | ||
<string>$(PRODUCT_NAME) requires FaceID access to allows you quick and secure access.</string> | ||
``` | ||
### Extra Configuration | ||
@@ -101,3 +118,4 @@ | ||
```javascript | ||
import React, { Component, PropTypes } from 'react'; | ||
import React, { Component } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { AlertIOS } from 'react-native'; | ||
@@ -135,3 +153,5 @@ import FingerprintScanner from 'react-native-fingerprint-scanner'; | ||
```javascript | ||
import React, { Component, PropTypes } from 'react'; | ||
import React, { Component } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { | ||
@@ -138,0 +158,0 @@ Alert, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43355
339
20
97