@evamp_saanga_npm/gamification-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

Name

@evamp_saanga_npm/gamification-sdk

Description

The Gamification React Native SDK provides a simple and effective way to integrate gamification features into your React Native app. The SDK displays a horizontal widget of games, which opens each game in a WebView. When a user finishes a game, a popup is shown with the points they earned.


Requirements

  • React Native 0.68 or higher
  • Node.js 14+
  • No additional dependencies are required for basic functionality.

Installation

Step 1: Install the SDK

Add the SDK to your project using npm or yarn:

Using npm:

npm install @evamp_saanga_npm/gamification-sdk

Using yarn:

yarn add @evamp_saanga_npm/gamification-sdk

Usage

Step 2: Import and Use the SDK

Once the SDK is installed, you can simply import and use the GameWidget component.

import GameWidget from "@evamp_saanga_npm/gamification-sdk";

const App = () => {
  return <GameWidget />;
};

export default App;

Explanation:

  • GameWidget: The main component that displays a horizontally scrollable widget of games.
  • Upon tapping a game, it opens the game in a WebView.
  • When the game ends, a popup shows the points the user earned.

Customization

The SDK is designed to work out of the box with zero configuration. At the moment, customization options are limited, but future versions may allow for:

  • Custom styling for the widget and popup.
  • Passing a list of available games dynamically.

For now, the component handles everything automatically.


Authors and acknowledgment

Evamp & Saanga

License

This SDK is licensed for internal use by authorized users of Evamp & Saanga only. Redistribution, modification, or external use without prior written consent is strictly prohibited. See the LICENSE file for full terms.

Project status

✅ Stable and in production use.

Contribution

Currently, this SDK is not open for contributions. If you're an internal developer at Evamp & Saanga, please follow internal guidelines for modifying or extending the SDK.

Package Sidebar

Install

npm i @evamp_saanga_npm/gamification-sdk

Weekly Downloads

0

Version

1.0.9

License

SEE LICENSE IN LICENSE

Unpacked Size

21 kB

Total Files

9

Last publish

Collaborators

  • evamp_saanga_npm_teams
  • wajid.ali
  • umair.nadeem