0.1.33 • Published 2 years ago

@unberry/unberry-player v0.1.33

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

npm.io

Installation

Install the package via npm:

npm install @unberry/unberry-player

or

yarn add @unberry/unberry-player

Usage

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

Minimal Example

import UnberryPlayer from '@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.30

2 years ago

0.1.31

2 years ago

0.1.32

2 years ago

0.1.33

2 years ago

0.1.27

2 years ago

0.1.28

2 years ago

0.1.29

2 years ago

0.1.21

2 years ago

0.1.22

2 years ago

0.1.23

2 years ago

0.1.24

2 years ago

0.1.25

2 years ago

0.1.26

2 years ago

0.1.2

2 years ago

0.1.221

2 years ago

0.1.192

3 years ago

0.1.191

3 years ago

0.1.17

3 years ago

0.1.18

3 years ago

0.1.19

3 years ago

0.1.193

3 years ago

0.1.16

3 years ago

0.1.15

3 years ago

0.1.14

3 years ago

0.1.13

3 years ago

0.1.12

3 years ago

0.1.11

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago