tapjoy-react-native-sdk
TypeScript icon, indicating that this package has built-in type declarations

13.4.1 • Public • Published

Tapjoy React Native SDK

React Native plugin for Tapjoy Offerwall SDK which supports Android & iOS platforms.

You can find the end user integration document here.

Module Development

Setup Environment

asdf install  #this command will install ruby, nodejs
  • Yarn install
npm install --global yarn
  • ios-deploy tool
brew install ios-deploy

Install Dependency

yarn bootstrap command will install all dependencies including pod dependency.

yarn bootstrap

Running Example

For iOS

yarn example ios

For Android

yarn example android

Javascript

./src/index.ts is the typescript module entry point.

iOS

You can find ./ios/TapjoyReactNativeSdk.swift and ./ios/TapjoyReactNativeSdk.m for the iOS bridge logic.

Android

You can find ./android/src/main/java/com/tapjoy/tapjoyreactnativesdk/TapjoyReactNativeSdkModule.kt for the Android bridge logic.

Debugging

Javascript

Press 'D' while the app is running. And select Debug with Chrome. Debug in Chrome inspector.

iOS

In Xcode, use Debug > Attach to Process feature

Android

In Android Studio, use Run > Attach Debugger to Android Process feature.

Integration Document

Tapjoy React Native SDK Integration Document.

Resources

Environment setup

https://reactnative.dev/docs/environment-setup

React Native iOS module

https://reactnative.dev/docs/native-modules-ios

React Native Android Doc

https://reactnative.dev/docs/native-modules-android

Package Sidebar

Install

npm i tapjoy-react-native-sdk

Weekly Downloads

336

Version

13.4.1

License

SEE LICENSE IN <LICENSE>

Unpacked Size

592 kB

Total Files

98

Last publish

Collaborators

  • tapjoy