showTabBar

Requires:
MiniKit≥1.0.0@ray-js/ray≥0.3.23
Platforms:
iOSAndroid
import { showTabBar } from '@ray-js/ray';

// Promise usage
try {
  const res = await showTabBar({ ...params });
  console.log(res);
} catch (err) {
  console.log(err.errorMsg);
}

Method signature
showTabBar(params: )

Description

Show the tabBar

Parameters

PropertyTypeRequiredDescription
animationbooleanYesWhether to use animation
complete() => voidNoCompletion callback (executed on both success and failure)
success() => voidNoCallback on successful API call
fail(params: Object) => voidNoFailure callback
fail callback parameters
PropertyTypeDescription
errorMsgstringError message
errorCodestring | numberError code
Error extension

Return Value

None

Examples

import { showTabBar } from '@ray-js/ray'

showTabBar({
  animation: true,
  success: data => { console.log(data); },
  fail: error => { console.error(error); },
});