Commit ed1de677 authored by Kacyn Fujii's avatar Kacyn Fujii

remove support for ios8

parent 588470e5
......@@ -199,6 +199,5 @@ console.log("App is running in emulator", DeviceInfo.isEmulator()); // if app is
console.log("App is running on a tablet", DeviceInfo.isTablet()); // if app is running on a tablet return true
console.log("PIN or fingerprint configured on device", DeviceInfo.isPinOrFingerprintSet()); // if PIN or fingerprint is configured.
// For iOS 8.0 and below, this will only return true if Touch ID is enabled
console.log("PIN or fingerprint configured on device", DeviceInfo.isPinOrFingerprintSet()); // if PIN or fingerprint is configured. Only supported in Android and iOS 9.0 and above
```
......@@ -166,14 +166,7 @@ RCT_EXPORT_MODULE()
- (bool) isPinOrFingerprintSet
{
LAContext *context = [[LAContext alloc] init];
// Fallback to LAPolicyDeviceOwnerAuthenticationWithBiometrics if iOS version <9.0
if ([[NSProcessInfo processInfo] isOperatingSystemAtLeastVersion:(NSOperatingSystemVersion){9,0,0}]) {
return ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthentication error:nil]);
}
else {
return ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:nil]);
}
return ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthentication error:nil]);
}
- (NSDictionary *)constantsToExport
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment