0.0.2 • Published 6 years ago

nuke-biz-custom-toast v0.0.2

Weekly downloads
13
License
-
Repository
gitlab
Last release
6 years ago

CustomToast

  • category: UI
  • chinese: 图标
  • type: UI组件

Why another toast ?

Since Modal.toast in weex-nuke calls native dialogs in weex , native toast cannot add custom style or any icons , which is exactly what we want. So we use Mask and View to create a new Toast.

API

参数说明类型默认值
typeicon type, 'success','error','warning'string'success'
messagetoast messagestring
onHidefunction called after toast was closedfunction
onShowfunction called after toast was openedfunctionfalse
maxLinesmessage max linesnumber3
durationtoast durationnumber2000