I have got a question. How do I get a result from function a async function?
This is my code:
function kakaoLogin() {
return async dispatch => {
RNKakaoLogins.login((err, result) => {
console.log(result);
});
console.log(result);
};
}
The first console.log(result) shows token!. but second console.log(result) does not show anything.
I want to get same result from second console.log(result) as first console.log(result)
