diff --git a/packages/hippy_ui_react/src/components/Toast/index.tsx b/packages/hippy_ui_react/src/components/Toast/index.tsx index 3d46a06..d39600b 100644 --- a/packages/hippy_ui_react/src/components/Toast/index.tsx +++ b/packages/hippy_ui_react/src/components/Toast/index.tsx @@ -53,7 +53,9 @@ class Toast extends Component { * */ static show(text: ToastProps['text'] | ToastProps, props?: Partial) { const _props = - typeof text === 'string' ? { text, ...(props || {}) } : { ...(text as ToastProps), ...(props || {}) }; + typeof text === 'string' || isValidElement(text) + ? { text, ...(props || {}) } + : { ...(text as ToastProps), ...(props || {}) }; Provider.updateGlobalView({ [GLOBAL_VIEW_KEY_TOAST]: { data: [