Module: ActionSheet

选项弹窗,无选择态,点击后弹窗消失

Parameters:
Name Type Description
animationType string

modal 显示动效, 默认'fade',参考 https://facebook.github.io/react-native/docs/0.54/modal#animationtype

visible bool

是否显示 modal, 默认false,参考 https://facebook.github.io/react-native/docs/0.54/modal#visible

options Array.<Opiton>

可点击的选项

buttons Array.<Button>

按钮数组,定义底部按钮的属性,只能显示1~2个按钮,多传将失效。默认左取消右确定,左灰右绿,点击回调都是隐藏 Modal

onDismiss function

Modal 隐藏时的回调函数

Since:
  • 10022
Author:
  • Geeook