Skip to content

Commit

Permalink
chore: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
hieuvp committed May 6, 2018
1 parent 4722dd7 commit 3a8b854
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
.DS_Store
build/


# node.js
#
node_modules/
npm-debug.log
yarn-error.log


# Xcode
#
Expand All @@ -29,7 +27,6 @@ DerivedData
*.ipa
*.xcuserstate
project.xcworkspace


# Android/IntelliJ
#
Expand All @@ -39,7 +36,6 @@ gradle/
local.properties
*.iml


# BUCK
buck-out/
\.buckd/
Expand Down
7 changes: 5 additions & 2 deletions src/authenticate.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ const { ReactNativeFingerprintScanner } = NativeModules;
export default ({ description = ' ', fallbackEnabled = true }) => {
return new Promise((resolve, reject) => {
ReactNativeFingerprintScanner.authenticate(description, fallbackEnabled, error => {
if (error) return reject(createError(error.message));
resolve(true);
if (error) {
return reject(createError(error.message));
}

return resolve(true);
});
});
}

0 comments on commit 3a8b854

Please sign in to comment.