I am trying to create a Facebook Oauth System for my NativeScript Android App.I have installed nativescript-oauth from my app's folder directory like this-
tns plugin add nativescript-oauth
Inside my node_modules folder a "nativescript-oauth" folder has been created and dependency also has been updated in composer.json.
In my App.js file,I add this-
var applicationModule = require("application");
var tnsOAuthModule = require("nativescript-oauth");
applicationModule.start({ moduleName: "views/login/login" });
But I am getting this error- Failed to find module:"nativescript:oauth",relative to: /app/tns_modules/
I have also tried this-
import * as tnsOAuthModule from ‘nativescript-oauth’;
But No luck.I am getting another error.What can I do?