npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

snipe-bk-cwc-sdk

v1.4.3

Published

Welcome to the Snipe BK SDK! This SDK is designed to provide easy integration of Gamification into your React Native applications, specifically tailored for the upcoming Cricket World Cup campaign. With the integration of this SDK, you will have multiple

Downloads

17

Readme

Snipe BK CWC SDK Documentation

Overview

Welcome to the Snipe BK SDK! This SDK is designed to provide easy integration of Gamification into your React Native applications, specifically tailored for the upcoming Cricket World Cup campaign. With the integration of this SDK, you will have multiple screens with various play-alongs, a live scoreboard, today's match details, and interactive games to enhance the gamification experience within the Burger King app during the Cricket World Cup.

Features

The Snipe BK CWC SDK provides a range of features and capabilities for enhancing the Burger King app's Cricket World Cup campaign, including:

  • Display live scoreboards with real-time match data.
  • Provide today's match details.
  • Different Play Along Games to increase participation.
  • And more!

Installation

You can easily install the Snipe BK CWC SDK using npm:

npm i snipe-bk-cwc

Usage

To use the SDK in your React Native project, follow these steps:

  1. Import the SDK in your React Native component.
import {SnipeSdk} from 'snipe-bk-cwc';
  1. Use the Component in the Application and pass the necessary props.
<SnipeSdk 
  cleaverTapInstance={yourCleverTapInstance}
  city="YourCity"
  state="YourState"
  store_id="YourStoreID"
  store_name="YourStoreName"
  er_id="YourER_ID"
  banners={yourBannersArray}
  er_user_name="YourER_UserName"
/>

SDK Props

When integrating the Snipe BK CWC SDK in your React Native application, it is essential to provide some properties for its optimal functioning. Here's a breakdown of the props you need to pass:

cleaverTapInstance: any

This is the instance of CleverTap that you would like to integrate with the SDK. This instance is essential for tracking and analytics purposes.

city: string

The city where the user is located.

state: string

The state where the user is located.

store_id: string

The unique identifier for the store where the user has made a purchase or is associated with.

store_name: string

The name of the store associated with the store_id.

er_id: string

The unique identifier for the Event Registration. This will be used to track specific events or promotions tied to the user.

banners: { url: string }[]

An array of banner objects. Each banner object contains a url which points to the location of the banner image. This will be used to display promotional banners within the SDK components.

er_user_name: string

The name of the user associated with the er_id.

Example

Here's a simple example of how to use the SDK with the necessary props:

import React from 'react';
import { View } from 'react-native';
import * as SDK from 'snipe-bk-cwc-sdk';

const Screen = () => {
  const cleverTapInstance = {}; // Your CleverTap instance here
  
  return (
    <View>
      <SnipeSdk 
        cleaverTapInstance={cleverTapInstance}
        city="Mumbai"
        state="Maharashtra"
        store_id="BK1234"
        store_name="Burger King Powai"
        er_id="ER5678"
        banners={[
          { url: 'https://example.com/banner1.jpg' },
          { url: 'https://example.com/banner2.jpg' }
        ]}
        er_user_name="John Doe"
      />
    </View>
  );
};

export default Screen;