23 lines
856 B
TypeScript
23 lines
856 B
TypeScript
// Metro module 9665 (f9666).
|
|
import { useEffect } from "react";
|
|
import useMountEffect from "../../../hooks/useMountEffect";
|
|
import ActionSheetActionCreators from "../../action_sheet/native/ActionSheetActionCreators";
|
|
export function DismissibleActionSheet(a0) {
|
|
let c17384_0 = a0;
|
|
useMountEffect(() => {
|
|
ActionSheetActionCreators.openLazy(c17384_0.importer(), c17384_0.actionSheetKey, {
|
|
...c17384_0,
|
|
markAsDismissed: function markAsDismissed(a0) {
|
|
ActionSheetActionCreators.hideActionSheet(c17384_0.actionSheetKey);
|
|
c17384_0.markAsDismissed(a0);
|
|
}
|
|
});
|
|
});
|
|
useEffect(() => () => {
|
|
if (c17384_0.hideSheetOnUnmount != null && c17384_0.hideSheetOnUnmount) {
|
|
ActionSheetActionCreators.hideActionSheet(c17384_0.actionSheetKey);
|
|
}
|
|
}, [a0.actionSheetKey, a0.hideSheetOnUnmount]);
|
|
return null;
|
|
}
|