Skip to content

Commit

Permalink
Fix bug when run plugin on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
williamtran29 committed May 6, 2017
1 parent de6e15c commit 0124ac9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {
})
})
},
isSensorAvailable() {
isSensorAvailable: () => {
return new Promise((resolve, reject) => {
RNFingerprintIdentify.isSensorAvailable().then((result) => {
if (result.error) {
Expand Down
8 changes: 8 additions & 0 deletions index.ios.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

export default {
initFingerPrintIdentify: () => null,
isSensorAvailable: () => null,
startIdentify: () => null,
dismiss: () => null,
cancelIdentify: () => null
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-fingerprint-identify",
"version": "1.0.3",
"version": "1.0.5",
"description": "A cool package for authenticate with Fingerprint sensor on Android device",
"author": "William Tran",
"nativePackage": true,
Expand Down

0 comments on commit 0124ac9

Please sign in to comment.