Migration from v1 to v2
Migration guide from v1 to v2 of the SDK
Uninstall the old version of the package
Install the new version and the prerequisite packages
react-native-modal
react-native-push-notification-popup
react-native-webview
Fetch API is used for network communications, so the response need to be converted to json
GameballWidget.init function has two more parameters platform - (shopify,...etc) deeplinks - which is an array of strings that represents the deeplinks of the app.
Rename GameballSdk => GameballSDK
Player registeration function changed from registerUser to registerPlayer
AddReferral function has been removed, instead pass the referrer code to registerPlayer function as mentioned in section.
InAppNotification component, in v2 it takes only the notification data, isVisible and onCloseFunction have been deleted
--------------Version 1 -----------------------
<InAppNotification
notification={data}
isVreadisible={true} // deleted
onCloseFunction={function} //deleted
/>
--------------Version 2 -----------------------
<InAppNotification
notification={data}
/>
Last updated