Initialization

Initialize Gameball Widget in your application class.

In order to use Gameball Widget, apply the below step to the main JS file (index or app).

Import Gameball Widget

import {GameballWidget} from ‘react-native-gameball’;

Initialize Gameball Widget

GameballWidget.init(gameball_apiKey, gameball_lang, gameball_shop)

Parameter

Required

Description

Type

gameball_apiKey

Required

Your Gameball unique client API Key

How to get your Gameball account API Key

String

gameball_lang

Optional

Initialization language of Gameball. If not provided the Gameball app will be initialized in English

String:

ar

de

en

es

fr

pl

pt

gameball_shop

Optional

Shopify