How to use the @react-native-seoul/kakao-login.getProfile 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 getProfile = () => {
    logCallback('Get Profile Start', setProfileLoading(true));

    KakaoLogins.getProfile()
      .then(result => {
        setProfile(result);
        logCallback(
          `Get Profile Finished:${JSON.stringify(result)}`,
          setProfileLoading(false),
        );
      })
      .catch(err => {
        logCallback(
          `Get Profile Failed:${err.code} ${err.message}`,
          setProfileLoading(false),
        );
      });
  };

@react-native-seoul/kakao-login

React Native Module for Kakao Login

MIT
Latest version published 25 days ago

Package Health Score

78 / 100
Full package analysis