Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
29 lines
915 B
TypeScript
29 lines
915 B
TypeScript
// Module ID: 10839
|
|
// Function ID: 10840
|
|
// Name: useToggleOnIAPSuccess
|
|
// Dependencies: [32, 19, 573, 2]
|
|
// Exports: default
|
|
|
|
// Module 10839 (useToggleOnIAPSuccess)
|
|
import DispatcherDefault from "Dispatcher" /* 573 */;
|
|
import _slicedToArray from "module_32" /* 32 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const require = globalThis.__r;
|
|
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/billing/native/subscription/useToggleOnIAPSuccess.tsx");
|
|
|
|
export default function useToggleOnIAPSuccess() {
|
|
function toggleFlip() {
|
|
importDefault((arg0) => !arg0);
|
|
}
|
|
[tmp2, importDefault] = noop.useState(false);
|
|
const effect = noop.useEffect(() => {
|
|
const subscription = DispatcherDefault.subscribe("IAP_PURCHASE_PRODUCT_SUCCESS", toggleFlip);
|
|
return () => {
|
|
require("Dispatcher").unsubscribe("IAP_PURCHASE_PRODUCT_SUCCESS", closure_1_1);
|
|
};
|
|
}, []);
|
|
return tmp2;
|
|
};
|