Initialize the SDK
Initialize Gameball at app startup, typically in your root component orApp.tsx:
Configuration Parameters
string
required
The client API key available in your Gameball dashboard (required).
string
required
Language code: ‘en’ or ‘ar’ (required).
string
Your Gameball shop identifier for multi-shop configurations.
string
Platform identifier (optional, set if you manage multiple platforms).
string
Session Token for secure authentication (enables automatic v4.1 endpoint routing). Required in upcoming SDK v4.
Validation Rules
GameballConfig requires:- API key is required (cannot be null)
- Language is required (cannot be null)