1.2.4 • Published 9 months ago

react-native-devtodev v1.2.4

Weekly downloads
1
License
MIT
Repository
github
Last release
9 months ago

react-native-devtodev

React Native bridge to the DevToDev(https://www.devtodev.com/) on Android. Not all methods is supported yet

Installation

  1. npm install --save react-native-devtodev
  2. react-native link react-native-devtodev

Usage

import DevToDev from 'react-native-devtodev';

// Initialize the library
DevToDev.init('APP_ID', 'SECRET_KEY');

// Method allows to initialize the user. It applies when SDK initialization or user relogin.
DevToDev.setUserId(activeUserId: string);

// Method sets the current user level. Using this method allows to actualize the SDK user data in game cross-platform applications.
DevToDev.setCurrentLevel(currentLevel: number);

// Custom event with params object
DevToDev.customEvent(eventName: string, { [string]: string | number });

// Player has reached a new level
DevToDev.levelUp(level: number);
1.2.4

9 months ago

1.2.3

9 months ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.1.0

6 years ago

0.0.1

6 years ago