0.1.12 • Published 5 months ago

@tech.unberry/unberry-player v0.1.12

Weekly downloads
-
License
-
Repository
-
Last release
5 months ago

npm.io

Installation

Install the package via npm:

npm install @tech.unberry/unberry-player

or

yarn add @tech.unberry/unberry-player

Usage

  1. Import unberry-player after installation
import UnberryPlayer from '@tech.unberry/unberry-player';
  1. Include unberry-player component
<UnberryPlayer />

Minimal Example

import UnberryPlayer from '@tech.unberry/unberry-player';

<UnberryPlayer
    apiKey={'API_KEY'}
    onGameLevelEnd={(data) => {}}
    gameInfo={{
        gameId: 'xxxx-xxxx-xxxxx-xxxxxx-xxxxx',
        gameUrl: 'htps://xxx-game-url.com',
    }}
    onGameClose={() => {
        // hide the game by not sending anything in gameInfo
    }}
    playerInfo={{
        id: 'yyyydf4f4t4t4',
        name: 'Nikhil',
        email: 'nikhil@ai.com',
    }}
/>;

Props

0.1.10

5 months ago

0.1.11

5 months ago

0.1.12

5 months ago

0.1.8

7 months ago

0.1.7

7 months ago

0.1.9

7 months ago

0.1.4

10 months ago

0.1.6

10 months ago

0.1.5

10 months ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago