1.0.4 • Published 5 years ago

react-native-ccs-kakaosdk v1.0.4

Weekly downloads
18
License
-
Repository
-
Last release
5 years ago

KakaoSDK for React Native

platforms npm npm github issues github closed issues Issue Stats

Getting started

$ npm install react-native-ccs-kakaosdk --save

Mostly automatic installation

$ react-native link react-native-ccs-kakaosdk

Manual installation

iOS (without CocoaPod)

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-ccs-kakaosdk and add RNCcsKakaosdk.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNCcsKakaosdk.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

iOS (with CocoaPod)

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-ccs-kakaosdk and add RNCcsKakaosdk.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNCcsKakaosdk.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.reactlibrary.RNCcsKakaosdkPackage; to the imports at the top of the file
  • Add new RNCcsKakaosdkPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-ccs-kakaosdk'
    project(':react-native-ccs-kakaosdk').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-ccs-kakaosdk/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-ccs-kakaosdk')

Initalizing project

iOS

Android

Usage

import KakaoSDK from 'react-native-ccs-kakaosdk';

// TODO: What to do with the module?
KakaoSDK.login().then().catch();
1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago