Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

@gamiphy/loyality-station-react-native-sdk

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gamiphy/loyality-station-react-native-sdk

[Gmiphy Loyalty Station npm module Link](https://www.npmjs.com/package/@gamiphy/loyality-station-react-native-sdk)

  • 0.0.7
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created

Gmiphy Loyalty Station SDK

Gmiphy Loyalty Station npm module Link

Introduction

Gamiphy Loyalty & Rewards, is a gamified loyalty program plugin/widget for eCommerce. You will be able to reward users with points for completing pre defined "challenges" within your store. In addition to that users can compete with each other in compeitions reflected on a leaderboard, receive badges and invite their freinds, among other gamified features.

Installation

Gamiphy Loyalty Station is available through npm, To install:

npm install --save @gamiphy/loyality-station-react-native-sdk

Getting started

Import LoyaltyStation from the library:

import {LoyaltyStation} from "@gamiphy/loyality-station-react-native-sdk"

Then wrap your code in LoyaltyStation component to make it available to all components.

<LoyaltyStation config={config:WebviewConfig}>  
    <YourComponent/>
</LoyaltyStation>

You can usee the use the hooks based API to access the Loyalty Station functionality :


function App() {
    const {open, close} = useLoyaltyStation()

    return (  
         <View>  
             <Button title="Open Loyalty Station " onPress={() => open()}/>  
             <Button title="Close Loyalty Station" onPress={() => close()}/>  
         </View>
     );
}

Injected props

It will inject the following props to the component:

`config` :
        `app`               - the loyality station id "bot Id"
        `user`:
            `email`         - is a must
            `hash`          - is a must
            `firstName`     - optional 
            `lastName`      - optional

FAQs

Package last updated on 03 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts