You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Everytime after i try login with facebook. It's success but always give warning
"Possible: Unhandled Promise Rejection (id: 0): Type Error: Undefined is not a function (Evaluating 'this.login()')".
i try bind the auth function and login function in constructor but the warning still pop up.
The text was updated successfully, but these errors were encountered:
So i have this code:
`constructor(props){
super(props);
this._fbAuth = this._fbAuth.bind(this);
this.login = this.login.bind(this);
}
login(){
this.props.navigator.push({
id: "Home",
});
}
_fbAuth(){
LoginManager.logInWithReadPermissions(['public_profile']).then(
function(result) {
if (result.isCancelled) {
alert('Login cancelled');
} else {
alert('Login success with permissions: '+result.grantedPermissions.toString());
this.login();
}
},
function(error) {
alert('Login fail with error: ' + error);
}
);
}`
Everytime after i try login with facebook. It's success but always give warning
"Possible: Unhandled Promise Rejection (id: 0): Type Error: Undefined is not a function (Evaluating 'this.login()')".
i try bind the auth function and login function in constructor but the warning still pop up.
The text was updated successfully, but these errors were encountered: