Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.
fan-w-suzuki edited this page Nov 6, 2019 · 2 revisions

Requirement

  • Android Studio: 3.5.1
  • Xcode: 11.1.0
  • react: 16.9.0
  • react-native: 0.61.1
  • react-native-cli: 2.0.1

If you use ReactNative version less than 0.60, check here

Installation

  1. cd path/to/your/react-native-project
  2. npm i react-native-nend-bridger
  3. react-native link react-native-nend-bridger

Android

  1. Add maven url 'http://fan-adn.github.io/nendSDK-Android-lib/library' to your project-level build.gradle.
    allprojects {
        repositories {
            mavenLocal()
            google()
            jcenter()
            maven {
                // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
                url "$rootDir/../node_modules/react-native/android"
            }
            maven {
                // nendSDK
                url 'http://fan-adn.github.io/nendSDK-Android-lib/library'
            }
        }
    }

iOS

  1. cd path/to/your/react-native-project/ios
  2. Open YOUR_PROJECT.xcworkspace
  3. Add new Swift file into your main build target for auto creation Swift-Bridging-Header and Objective-C generated interface Header img
    img
Clone this wiki locally