-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ActionSheet 中点击蒙层关闭时是否可以增加相关返回 #908
Comments
意思需要点击蒙层关闭的回调? 用 |
额,api好像没暴露出来 |
不应该有 onClose 这样的 api,应该是通过回调的 index 来判断 @pigcan ,参考 native,RN |
@silentcloud 有啊,rc-dialog 的 |
@paranoidjk api 尽量平台通用保持一致性,这也是最初做这个库的出发点 http://facebook.github.io/react-native/releases/next/docs/actionsheetios.html |
@warmhug 来参与一下讨论 |
@silentcloud 现在点击蒙层关闭,并没有在回调中体现 index 吧,按理是需要和 cancelButton 保持一致的. |
@pigcan 恩,点击蒙层应该是返回取消的 index,web 是有 bug 的,这个我等会改 |
index 有的,看 demo 写法 |
为什么点击蒙层没办法关闭 |
可以在 callback 中设置返回字段
也可以是个相关的事件
The text was updated successfully, but these errors were encountered: