Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions PasscodeAuth.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@
*/
'use strict';

var warning = require('warning');

var PasscodeAuth = {
test: function() {
warning('Not yet implemented for Android.');
}
export default {
isSupported() {
return false;
}
};

module.exports = PasscodeAuth;
1 change: 1 addition & 0 deletions PasscodeAuth.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@
"$(inherited)",
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
"$(SRCROOT)/../../React/**",
"$(SRCROOT)/../../node_modules/react-native/React/**",
);
LIBRARY_SEARCH_PATHS = "$(inherited)";
OTHER_LDFLAGS = "-ObjC";
Expand Down
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import PasscodeAuth from "./PasscodeAuth";

export default PasscodeAuth;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"start": "node_modules/react-native/packager/packager.sh"
},
"main": "PasscodeAuth.ios.js",
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/naoufal/react-native-passcode-auth.git"
Expand Down