How to use the @react-native-seoul/kakao-login.login function in @react-native-seoul/kakao-login

To help you get started, we’ve selected a few @react-native-seoul/kakao-login examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github react-native-seoul / react-native-kakao-login / KakaoLoginExample / App.js View on Github external
const kakaoLogin = () => {
    logCallback('Login Start', setLoginLoading(true));

    KakaoLogins.login()
      .then(result => {
        setToken(result.accessToken);
        logCallback(
          `Login Finished:${JSON.stringify(result)}`,
          setLoginLoading(false),
        );
      })
      .catch(err => {
        if (err.code === 'E_CANCELLED_OPERATION') {
          logCallback(`Login Cancelled:${err.message}`, setLoginLoading(false));
        } else {
          logCallback(
            `Login Failed:${err.code} ${err.message}`,
            setLoginLoading(false),
          );
        }

@react-native-seoul/kakao-login

React Native Module for Kakao Login

MIT
Latest version published 7 months ago

Package Health Score

69 / 100
Full package analysis