setTabBarStyle
Requires:
MiniKit≥1.0.0@ray-js/ray≥0.3.23
Platforms:
iOSAndroid
Method signature
setTabBarStyle(params: )Description
Dynamically set the overall tabBar style
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
color | string | Yes | Default text color on the tab |
selectedColor | string | Yes | Text color when the tab is selected |
backgroundColor | string | Yes | Tab background color |
borderStyle | string | Yes | Top border color of the tabBar; supports only black/white |
complete | () => void | No | Completion callback (executed on both success and failure) |
success | () => void | No | Callback on successful API call |
fail | (params: Object) => void | No | Failure callback |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None