Skip to content

Commit 54d74f0

Browse files
committed
Updated example, removed isHardwareDetected
* Removed isHardwareDetected in favor of isSensor available (was not working on iOS) * Fixed example android permissions * Improving .npmgitignore
1 parent 3a6ff38 commit 54d74f0

File tree

14 files changed

+115
-118
lines changed

14 files changed

+115
-118
lines changed

.npmignore

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1-
example/
2-
website/
3-
cover.png
1+
*
2+
!android/**
3+
!ios/**
4+
!windows/**
5+
!./package.json
6+
!index.d.ts
7+
!react-native-sensitive-info.podspec
8+
!RNSensitiveInfo.js

android/src/main/java/br/com/classapp/RNSensitiveInfo/RNSensitiveInfoModule.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -145,18 +145,18 @@ public void setInvalidatedByBiometricEnrollment(final boolean invalidatedByBiome
145145
}
146146
}
147147

148-
@ReactMethod
149-
public void isHardwareDetected(final Promise pm) {
150-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
151-
ReactApplicationContext reactApplicationContext = getReactApplicationContext();
152-
BiometricManager biometricManager = BiometricManager.from(reactApplicationContext);
153-
int canAuthenticate = biometricManager.canAuthenticate();
154-
155-
pm.resolve(canAuthenticate != BiometricManager.BIOMETRIC_ERROR_NO_HARDWARE);
156-
} else {
157-
pm.resolve(false);
158-
}
159-
}
148+
// @ReactMethod
149+
// public void isHardwareDetected(final Promise pm) {
150+
// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
151+
// ReactApplicationContext reactApplicationContext = getReactApplicationContext();
152+
// BiometricManager biometricManager = BiometricManager.from(reactApplicationContext);
153+
// int canAuthenticate = biometricManager.canAuthenticate();
154+
155+
// pm.resolve(canAuthenticate != BiometricManager.BIOMETRIC_ERROR_NO_HARDWARE);
156+
// } else {
157+
// pm.resolve(false);
158+
// }
159+
// }
160160

161161
@ReactMethod
162162
public void hasEnrolledFingerprints(final Promise pm) {

example/ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ PODS:
238238
- React-jsinspector (0.63.2)
239239
- react-native-safe-area-context (3.1.1):
240240
- React
241-
- react-native-sensitive-info (5.5.7-7da6a228):
241+
- react-native-sensitive-info (5.5.7-3c2ec2f9):
242242
- React
243243
- React-RCTActionSheet (0.63.2):
244244
- React-Core/RCTActionSheetHeaders (= 0.63.2)
@@ -476,7 +476,7 @@ SPEC CHECKSUMS:
476476
React-jsiexecutor: 8ca588cc921e70590820ce72b8789b02c67cce38
477477
React-jsinspector: b14e62ebe7a66e9231e9581279909f2fc3db6606
478478
react-native-safe-area-context: 344b969c45af3d8464d36e8dea264942992ef033
479-
react-native-sensitive-info: d8a698d9ef2ad686aa8a3592654d4d89ee9bde17
479+
react-native-sensitive-info: 24aae7ea2c6c2bf0635b9f68073735a7fe0c413f
480480
React-RCTActionSheet: 910163b6b09685a35c4ebbc52b66d1bfbbe39fc5
481481
React-RCTAnimation: 9a883bbe1e9d2e158d4fb53765ed64c8dc2200c6
482482
React-RCTBlob: 39cf0ece1927996c4466510e25d2105f67010e13

example/ios/example/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
</dict>
4040
<key>NSLocationWhenInUseUsageDescription</key>
4141
<string></string>
42+
<key>NSFaceIDUsageDescription</key>
43+
<string>We would like to unlock security information using your FaceID</string>
4244
<key>UILaunchStoryboardName</key>
4345
<string>LaunchScreen</string>
4446
<key>UIRequiredDeviceCapabilities</key>

example/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
},
1212
"dependencies": {
1313
"@react-native-community/masked-view": "^0.1.10",
14-
"@react-navigation/native": "^5.7.1",
15-
"@react-navigation/stack": "^5.7.1",
14+
"@react-navigation/native": "^5.7.2",
15+
"@react-navigation/stack": "^5.8.0",
1616
"react": "16.13.1",
1717
"react-native": "0.63.2",
1818
"react-native-gesture-handler": "^1.7.0",
@@ -27,8 +27,8 @@
2727
"@types/jest": "^26.0.7",
2828
"@types/react-native": "^0.63.2",
2929
"@types/react-test-renderer": "^16.9.2",
30-
"@typescript-eslint/eslint-plugin": "^3.7.0",
31-
"@typescript-eslint/parser": "^3.7.0",
30+
"@typescript-eslint/eslint-plugin": "^3.7.1",
31+
"@typescript-eslint/parser": "^3.7.1",
3232
"babel-jest": "^26.1.0",
3333
"eslint": "^7.5.0",
3434
"eslint-config-airbnb": "^18.2.0",
@@ -37,7 +37,7 @@
3737
"eslint-plugin-import": "^2.22.0",
3838
"eslint-plugin-jsx-a11y": "^6.3.1",
3939
"eslint-plugin-prettier": "^3.1.4",
40-
"eslint-plugin-react": "^7.20.3",
40+
"eslint-plugin-react": "^7.20.4",
4141
"eslint-plugin-react-hooks": "^4.0.8",
4242
"jest": "^26.1.0",
4343
"metro-react-native-babel-preset": "^0.61.0",

example/src/pages/Home/index.tsx

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,41 @@ const Home: React.FC = () => {
1212

1313
const handleSetItemUsingTouchIDOnPress = useCallback(async () => {
1414
try {
15-
const deviceHasSensor = await SInfo.isSensorAvailable();
15+
// const deviceHasSensor = await SInfo.isSensorAvailable();
1616

17-
if (!deviceHasSensor) {
18-
return Alert.alert('No sensor found');
19-
}
17+
// if (!deviceHasSensor) {
18+
// return Alert.alert('No sensor found');
19+
// }
2020

21-
SInfo.setItem('touchIdItem', 'dataStoredUsingTouchId', {
22-
// touchID: true,
23-
showModal: true
21+
await SInfo.setItem('touchIdItem', new Date().toISOString(), {
22+
kSecAccessControl: 'kSecAccessControlBiometryAny',
23+
touchID: true,
2424
});
25+
26+
Alert.alert('data successfully stored');
2527
} catch (ex) {
2628
console.log(ex.message);
2729
}
2830
}, []);
2931

30-
/**
31-
* @BUG when triggering this function iOS emulator crashes. Need to investigate
32-
*/
3332
const getTouchIDItem = useCallback(async () => {
3433
const deviceHasSensor = await SInfo.isSensorAvailable();
3534

36-
if (!deviceHasSensor) {
37-
return Alert.alert('No sensor found');
38-
}
35+
// if (!deviceHasSensor) {
36+
// return Alert.alert('No sensor found');
37+
// }
3938

40-
SInfo.getItem('touchIdItem', {
41-
touchID: true,
42-
showModal: true
43-
});
39+
try {
40+
const data = await SInfo.getItem('touchIdItem', {
41+
touchID: true,
42+
kSecUseOperationPrompt:
43+
'We need your permission to retrieve encrypted data',
44+
});
45+
46+
Alert.alert('Data stored', data);
47+
} catch (ex) {
48+
Alert.alert('Error', ex.message);
49+
}
4450
}, []);
4551

4652
return (

example/yalc.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"version": "v1",
33
"packages": {
44
"react-native-sensitive-info": {
5-
"signature": "425b7d38ece20a9a95f0880f94414ee1",
5+
"signature": "3c2ec2f9e611259407ca3ee65fb136ad",
66
"file": true
77
}
88
}

example/yarn.lock

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,37 +1114,37 @@
11141114
resolved "https://registry.yarnpkg.com/@react-native-community/masked-view/-/masked-view-0.1.10.tgz#5dda643e19e587793bc2034dd9bf7398ad43d401"
11151115
integrity sha512-rk4sWFsmtOw8oyx8SD3KSvawwaK7gRBSEIy2TAwURyGt+3TizssXP1r8nx3zY+R7v2vYYHXZ+k2/GULAT/bcaQ==
11161116

1117-
"@react-navigation/core@^5.12.1":
1118-
version "5.12.1"
1119-
resolved "https://registry.yarnpkg.com/@react-navigation/core/-/core-5.12.1.tgz#46817ebf19ca9dc32559aaa70130c294deb3d7e0"
1120-
integrity sha512-/0IQ/MzsLHD1JthTPd1AwpIEWMejPksh0qAloynEwL+ILLZMq9jJF3b7T8rFxHVbsBuaM7lKOWUcULDvnOxksQ==
1117+
"@react-navigation/core@^5.12.2":
1118+
version "5.12.2"
1119+
resolved "https://registry.yarnpkg.com/@react-navigation/core/-/core-5.12.2.tgz#b97c94e8b165fa3a2220db00d28eb06d0e6820cf"
1120+
integrity sha512-ybsnttbYpyCVN7jGHEIfOKg6Bdyr0seXvxUMtSJNt3mI33KWMRJrqyYU2ILoxAaDdRcBItvBlOYWxMRrBJyZkQ==
11211121
dependencies:
1122-
"@react-navigation/routers" "^5.4.9"
1122+
"@react-navigation/routers" "^5.4.10"
11231123
escape-string-regexp "^4.0.0"
11241124
nanoid "^3.1.9"
11251125
query-string "^6.13.1"
11261126
react-is "^16.13.0"
11271127
use-subscription "^1.4.0"
11281128

1129-
"@react-navigation/native@^5.7.1":
1130-
version "5.7.1"
1131-
resolved "https://registry.yarnpkg.com/@react-navigation/native/-/native-5.7.1.tgz#5a59be6f7c1bf4cdf5e16625bf59688aeab808f8"
1132-
integrity sha512-dhxH+CGC8YoVrjm05/gU/GeLfNpJGQO/KWyzSkEsns+nzxJ/jFZWG2uIksZym5zknJcYn9Ze7jecI7r+0SWAzA==
1129+
"@react-navigation/native@^5.7.2":
1130+
version "5.7.2"
1131+
resolved "https://registry.yarnpkg.com/@react-navigation/native/-/native-5.7.2.tgz#eaf95335153b95f74c4dd2f98698d3debeb17235"
1132+
integrity sha512-pGaiCg5G0aUol1+J50xx6ioq+wlXGOqxdlZaHgVwlYbYuuHLC1ForsH1wIzQdUHBEfHiw5/VDxFwRX5p1dHUCg==
11331133
dependencies:
1134-
"@react-navigation/core" "^5.12.1"
1134+
"@react-navigation/core" "^5.12.2"
11351135
nanoid "^3.1.9"
11361136

1137-
"@react-navigation/routers@^5.4.9":
1138-
version "5.4.9"
1139-
resolved "https://registry.yarnpkg.com/@react-navigation/routers/-/routers-5.4.9.tgz#f2f06ab6d3fc7fa8bf06d1885542cf4e0101141e"
1140-
integrity sha512-dYD5qrIKUmuBEp+O98hB0tDYpEsGQgCQFQgMEoFKBmVVhx2JnJJ1zxRjU7xWcCU4VdBA8IOowgHQHJsVNKYyrg==
1137+
"@react-navigation/routers@^5.4.10":
1138+
version "5.4.10"
1139+
resolved "https://registry.yarnpkg.com/@react-navigation/routers/-/routers-5.4.10.tgz#8b44914d5141f9518e71dde7cb21f09d74f79f89"
1140+
integrity sha512-uOcz3HugGBjCSPz4EG3LLjk8cBrBm0cK04c+OxPG/0xC9gfOYKrjlGnxGtZy+bXdITrn7179U0wx2vVEf2sclw==
11411141
dependencies:
11421142
nanoid "^3.1.9"
11431143

1144-
"@react-navigation/stack@^5.7.1":
1145-
version "5.7.1"
1146-
resolved "https://registry.yarnpkg.com/@react-navigation/stack/-/stack-5.7.1.tgz#847b4f7087a87e01086e5e09f49111e42319abde"
1147-
integrity sha512-Gbzimr3ZkEpTge44J2/jkEkSKQ/R+wcHT7XPfukhItTm+p3jMD9RcqoshWJaUdWG93wDOHPm4BgbhQmuSgCLWA==
1144+
"@react-navigation/stack@^5.8.0":
1145+
version "5.8.0"
1146+
resolved "https://registry.yarnpkg.com/@react-navigation/stack/-/stack-5.8.0.tgz#7a7b40917fc46e5e0ce4193e86b5354277d97f38"
1147+
integrity sha512-gp4Rcst86OEFAwZG/AM904ueQ4wQDCpY8XP63ToqJMgU0mCFSABVZCFwo0GuhpCs8KAtH/tAf6X2aQFDpmlaNg==
11481148
dependencies:
11491149
color "^3.1.2"
11501150
react-native-iphone-x-helper "^1.2.1"
@@ -1322,63 +1322,63 @@
13221322
dependencies:
13231323
"@types/yargs-parser" "*"
13241324

1325-
"@typescript-eslint/eslint-plugin@^3.7.0":
1326-
version "3.7.0"
1327-
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.7.0.tgz#0f91aa3c83d019591719e597fbdb73a59595a263"
1328-
integrity sha512-4OEcPON3QIx0ntsuiuFP/TkldmBGXf0uKxPQlGtS/W2F3ndYm8Vgdpj/woPJkzUc65gd3iR+qi3K8SDQP/obFg==
1325+
"@typescript-eslint/eslint-plugin@^3.7.1":
1326+
version "3.7.1"
1327+
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.7.1.tgz#d144c49a9a0ffe8dd704bb179c243df76c111bc9"
1328+
integrity sha512-3DB9JDYkMrc8Au00rGFiJLK2Ja9CoMP6Ut0sHsXp3ZtSugjNxvSSHTnKLfo4o+QmjYBJqEznDqsG1zj4F2xnsg==
13291329
dependencies:
1330-
"@typescript-eslint/experimental-utils" "3.7.0"
1330+
"@typescript-eslint/experimental-utils" "3.7.1"
13311331
debug "^4.1.1"
13321332
functional-red-black-tree "^1.0.1"
13331333
regexpp "^3.0.0"
13341334
semver "^7.3.2"
13351335
tsutils "^3.17.1"
13361336

1337-
"@typescript-eslint/[email protected].0":
1338-
version "3.7.0"
1339-
resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-3.7.0.tgz#0ee21f6c48b2b30c63211da23827725078d5169a"
1340-
integrity sha512-xpfXXAfZqhhqs5RPQBfAFrWDHoNxD5+sVB5A46TF58Bq1hRfVROrWHcQHHUM9aCBdy9+cwATcvCbRg8aIRbaHQ==
1337+
"@typescript-eslint/[email protected].1":
1338+
version "3.7.1"
1339+
resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-3.7.1.tgz#ab036caaed4c870d22531d41f9352f3147364d61"
1340+
integrity sha512-TqE97pv7HrqWcGJbLbZt1v59tcqsSVpWTOf1AqrWK7n8nok2sGgVtYRuGXeNeLw3wXlLEbY1MKP3saB2HsO/Ng==
13411341
dependencies:
13421342
"@types/json-schema" "^7.0.3"
1343-
"@typescript-eslint/types" "3.7.0"
1344-
"@typescript-eslint/typescript-estree" "3.7.0"
1343+
"@typescript-eslint/types" "3.7.1"
1344+
"@typescript-eslint/typescript-estree" "3.7.1"
13451345
eslint-scope "^5.0.0"
13461346
eslint-utils "^2.0.0"
13471347

1348-
"@typescript-eslint/parser@^3.7.0":
1349-
version "3.7.0"
1350-
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-3.7.0.tgz#3e9cd9df9ea644536feb6e5acdb8279ecff96ce9"
1351-
integrity sha512-2LZauVUt7jAWkcIW7djUc3kyW+fSarNEuM3RF2JdLHR9BfX/nDEnyA4/uWz0wseoWVZbDXDF7iF9Jc342flNqQ==
1348+
"@typescript-eslint/parser@^3.7.1":
1349+
version "3.7.1"
1350+
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-3.7.1.tgz#5d9ccecb116d12d9c6073e9861c57c9b1aa88128"
1351+
integrity sha512-W4QV/gXvfIsccN8225784LNOorcm7ch68Fi3V4Wg7gmkWSQRKevO4RrRqWo6N/Z/myK1QAiGgeaXN57m+R/8iQ==
13521352
dependencies:
13531353
"@types/eslint-visitor-keys" "^1.0.0"
1354-
"@typescript-eslint/experimental-utils" "3.7.0"
1355-
"@typescript-eslint/types" "3.7.0"
1356-
"@typescript-eslint/typescript-estree" "3.7.0"
1354+
"@typescript-eslint/experimental-utils" "3.7.1"
1355+
"@typescript-eslint/types" "3.7.1"
1356+
"@typescript-eslint/typescript-estree" "3.7.1"
13571357
eslint-visitor-keys "^1.1.0"
13581358

1359-
"@typescript-eslint/[email protected].0":
1360-
version "3.7.0"
1361-
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-3.7.0.tgz#09897fab0cb95479c01166b10b2c03c224821077"
1362-
integrity sha512-reCaK+hyKkKF+itoylAnLzFeNYAEktB0XVfSQvf0gcVgpz1l49Lt6Vo9x4MVCCxiDydA0iLAjTF/ODH0pbfnpg==
1359+
"@typescript-eslint/[email protected].1":
1360+
version "3.7.1"
1361+
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-3.7.1.tgz#90375606b2fd73c1224fe9e397ee151e28fa1e0c"
1362+
integrity sha512-PZe8twm5Z4b61jt7GAQDor6KiMhgPgf4XmUb9zdrwTbgtC/Sj29gXP1dws9yEn4+aJeyXrjsD9XN7AWFhmnUfg==
13631363

1364-
"@typescript-eslint/[email protected].0":
1365-
version "3.7.0"
1366-
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-3.7.0.tgz#66872e6da120caa4b64e6b4ca5c8702afc74738d"
1367-
integrity sha512-xr5oobkYRebejlACGr1TJ0Z/r0a2/HUf0SXqPvlgUMwiMqOCu/J+/Dr9U3T0IxpE5oLFSkqMx1FE/dKaZ8KsOQ==
1364+
"@typescript-eslint/[email protected].1":
1365+
version "3.7.1"
1366+
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-3.7.1.tgz#ce1ffbd0fa53f34d4ce851a7a364e392432f6eb3"
1367+
integrity sha512-m97vNZkI08dunYOr2lVZOHoyfpqRs0KDpd6qkGaIcLGhQ2WPtgHOd/eVbsJZ0VYCQvupKrObAGTOvk3tfpybYA==
13681368
dependencies:
1369-
"@typescript-eslint/types" "3.7.0"
1370-
"@typescript-eslint/visitor-keys" "3.7.0"
1369+
"@typescript-eslint/types" "3.7.1"
1370+
"@typescript-eslint/visitor-keys" "3.7.1"
13711371
debug "^4.1.1"
13721372
glob "^7.1.6"
13731373
is-glob "^4.0.1"
13741374
lodash "^4.17.15"
13751375
semver "^7.3.2"
13761376
tsutils "^3.17.1"
13771377

1378-
"@typescript-eslint/[email protected].0":
1379-
version "3.7.0"
1380-
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-3.7.0.tgz#ac0417d382a136e4571a0b0dcfe52088cb628177"
1381-
integrity sha512-k5PiZdB4vklUpUX4NBncn5RBKty8G3ihTY+hqJsCdMuD0v4jofI5xuqwnVcWxfv6iTm2P/dfEa2wMUnsUY8ODw==
1378+
"@typescript-eslint/[email protected].1":
1379+
version "3.7.1"
1380+
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-3.7.1.tgz#b90191e74efdee656be8c5a30f428ed16dda46d1"
1381+
integrity sha512-xn22sQbEya+Utj2IqJHGLA3i1jDzR43RzWupxojbSWnj3nnPLavaQmWe5utw03CwYao3r00qzXfgJMGNkrzrAA==
13821382
dependencies:
13831383
eslint-visitor-keys "^1.1.0"
13841384

@@ -2728,10 +2728,10 @@ eslint-plugin-react-hooks@^4.0.8:
27282728
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.0.8.tgz#a9b1e3d57475ccd18276882eff3d6cba00da7a56"
27292729
integrity sha512-6SSb5AiMCPd8FDJrzah+Z4F44P2CdOaK026cXFV+o/xSRzfOiV1FNFeLl2z6xm3yqWOQEZ5OfVgiec90qV2xrQ==
27302730

2731-
eslint-plugin-react@^7.20.3:
2732-
version "7.20.3"
2733-
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.20.3.tgz#0590525e7eb83890ce71f73c2cf836284ad8c2f1"
2734-
integrity sha512-txbo090buDeyV0ugF3YMWrzLIUqpYTsWSDZV9xLSmExE1P/Kmgg9++PD931r+KEWS66O1c9R4srLVVHmeHpoAg==
2731+
eslint-plugin-react@^7.20.4:
2732+
version "7.20.4"
2733+
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.20.4.tgz#c14d2631221ec694ddd84557d7152f44b66e4aa0"
2734+
integrity sha512-y4DOQ0LrzuDQFEAnYFGjJMRHQQqfTco02qiWI00eGQYikHTzC15S5aRHGWSffnThv8sBpsmFBLky3K5keniAJg==
27352735
dependencies:
27362736
array-includes "^3.1.1"
27372737
array.prototype.flatmap "^1.2.3"
@@ -5840,7 +5840,7 @@ react-native-screens@^2.9.0:
58405840
integrity sha512-5MaiUD6HA3nzY3JbVI8l3V7pKedtxQF3d8qktTVI0WmWXTI4QzqOU8r8fPVvfKo3MhOXwhWBjr+kQ7DZaIQQeg==
58415841

58425842
"react-native-sensitive-info@file:.yalc/react-native-sensitive-info":
5843-
version "5.5.7-7da6a228"
5843+
version "0.0.0"
58445844

58455845
58465846
version "0.63.2"

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export declare function deleteItem(
6868
export declare function isSensorAvailable(): Promise<
6969
RNSensitiveInfoBiometryType | boolean
7070
>;
71-
export declare function isHardwareDetected(): Promise<boolean>;
71+
7272
export declare function hasEnrolledFingerprints(): Promise<boolean>;
7373
export declare function cancelFingerprintAuth(): void;
7474
export declare function setInvalidatedByBiometricEnrollment(set: boolean): void;

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"types": "index.d.ts",
66
"description": "react-native-sensitive-info manages all data stored in Android Shared Preferences and iOS Keychain. You can set, get and delete keys/values using simple methods.",
77
"scripts": {
8+
"localPublish": "yalc publish && cd example && yalc add react-native-sensitive-info --yarn && cd ..",
89
"start": "node node_modules/react-native/local-cli/cli.js start"
910
},
1011
"author": {

0 commit comments

Comments
 (0)