当模态关闭时,在父项中调用函数

时间:2017-07-14 06:19:28

标签: react-native

当我关闭模态时,我需要在父容器中调用一个函数。我该怎么做?

我正在使用文档https://facebook.github.io/react-native/docs/modal.html

中描述的模态

1 个答案:

答案 0 :(得分:1)

在props中传递一个回调函数,并在模型的onRequestClose事件中调用它。