https://github.com/omerdogan3/react-native-playhub
https://github.com/omerdogan3/react-native-playhub
android ios package playhub react-native
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/omerdogan3/react-native-playhub
- Owner: Omerdogan3
- License: mit
- Created: 2021-12-15T14:37:31.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-22T08:46:04.000Z (about 4 years ago)
- Last Synced: 2025-03-31T08:20:00.551Z (over 1 year ago)
- Topics: android, ios, package, playhub, react-native
- Language: JavaScript
- Homepage:
- Size: 140 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# React Native Playhub Plugin
React native plugin in order to implement playhub.
### Requirements
Before starting, please install libraries below.
- ```axios ```
- ```react-native-device-info ```
- ```@react-native-firebase/dynamic-links ```
- ```@react-native-community/async-storage```
- ```crypto-js```
### Installation
```bash
yarn add @omerdogan3/react-native-playhub
```
### Usage
Call initialize function on first open.
```bash
import {initialize} from '@omerdogan3/react-native-playhub';
useEffect(()=> {
initialize();
}, [])
```
Send event functions in app.
```bash
import {highScore, readChapter, levelUp, scanBarcode} from '@omerdogan3/react-native-playhub';
highScore(100)
readChapter(10)
levelUp(5)
scanBarcode(10)
```