17 lines
348 B
TypeScript
17 lines
348 B
TypeScript
// Metro module 3890 (f3891).
|
|
import Dispatcher from "../../../Dispatcher";
|
|
const r13 = {
|
|
open: (toastProps) => {
|
|
Dispatcher.wait(() => Dispatcher.dispatch({
|
|
type: "TOAST_OPEN",
|
|
toastProps
|
|
}));
|
|
},
|
|
close: () => {
|
|
Dispatcher.wait(() => Dispatcher.dispatch({
|
|
type: "TOAST_CLOSE"
|
|
}));
|
|
}
|
|
};
|
|
export default r13;
|