1.2.4 • Published 1 year ago

gamification-react-test1 v1.2.4

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Gamification for android & ios platform

this package provide rewards integration of any existing system to integrate rewards and claim.

Installation

You can install this package using npm:

npm install gamification-react-test1

if getting any error install this package using npm:

npm install gamification-react-test1 react-native-webview react-native-orientation-locker --force

ios showing any error install package

npm install react-native-webview

then go ios folder then run cmd

pod install

Usage

1.create new page and import Gamification & pass config.

import GamificationReactTest1 from "gamification-react-test1";
import {useState} from "react";
import {Button} from "react-native";

export default (() => {
    const [open, setOpen] = useState(false);
    const baseUrl = "https://thelogicalbanya.com/popupdemo/dashboard.php";
    const clientID = "demo";
    const clientKey = "demo";
    const userID = "100031";
    const username = "TheLogicalBanya";
    const keyString = "bR5z6*r$00p#Eno__odrEgeW";
    return (<>
        {open ?
            <GamificationReactTest1
                baseUrl={baseUrl}
                clientID={clientID}
                clientKey={clientKey}
                userID={userID}
                username={username}
                keyString={keyString}
                onClose={() => setOpen(false)}/> :
            <Button title={'open'}
                    onPress={() => setOpen(true)}/>
        }

    </>);
})

*Note: for ios wrap in SafeAreaView for rendering.

also you can pass another optional parameters 1.utm_param1 2.utm_param2 3.utm_param3 s4.utm_param4

for example

import GamificationReactTest1 from "gamification-react-test1";
import {useState} from "react";
import {Button} from "react-native";

export default (() => {
    const [open, setOpen] = useState(false);
    const baseUrl = "https://thelogicalbanya.com/popupdemo/dashboard.php";
    const clientID = "demo";
    const clientKey = "demo";
    const userID = "100031";
    const username = "TheLogicalBanya";
    const keyString = "bR5z6*r$00p#Eno__odrEgeW";
    return (<>
        {open ?
            <GamificationReactTest1
                baseUrl={baseUrl}
                clientID={clientID}
                clientKey={clientKey}
                userID={userID}
                username={username}
                keyString={keyString}
                onClose={() => setOpen(false)}
                utm_param1="pass value"
                /> :
            <Button title={'open'}
                    onPress={() => setOpen(true)}/>
        }

    </>);
})
1.2.0

1 year ago

1.0.9

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.1

1 year ago