React native plugin in order to implement playhub.
Before starting, please install libraries below.
axios
react-native-device-info
@react-native-firebase/dynamic-links
@react-native-community/async-storage
crypto-js
yarn add @omerdogan3/react-native-playhub
Call initialize function on first open.
import {initialize} from '@omerdogan3/react-native-playhub';
useEffect(()=> {
initialize();
}, [])
Send event functions in app.
import {highScore, readChapter, levelUp, scanBarcode} from '@omerdogan3/react-native-playhub';
highScore(100)
readChapter(10)
levelUp(5)
scanBarcode(10)