decord/alpha/source/modules/vibegrations/native/useVibegrationsDisallowSwipeExit.tsx
github-actions 45f5884862 chore: update source for alpha 348.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5012.js (118.4 MB)
2026-09-23 06:49:31 +00:00

43 lines
1.4 KiB
TypeScript

// Module ID: 17035
// Function ID: 17036
// Name: useVibegrationsDisallowSwipeExit
// Dependencies: [19, 16405, 2]
// Exports: default
// Module 17035 (useVibegrationsDisallowSwipeExit)
import MainTabsNavigatorPanelContext from "MainTabsNavigatorPanelContext" /* 16405 */;
import noop from "module_19" /* 19 */;
const MainTabsNavigatorPanelContextDefault = MainTabsNavigatorPanelContext;
require = fn;
const size = fn(2);
let result = size.fileFinishedImporting("modules/vibegrations/native/useVibegrationsDisallowSwipeExit.tsx");
export default function useVibegrationsDisallowSwipeExit(arg0) {
closure_0 = arg0;
const disallowGesture = noop.useContext(MainTabsNavigatorPanelContextDefault).disallowGesture;
const context = noop.useContext(MainTabsNavigatorPanelContext.MainTabsChannelScreenStackContext);
let disallowGesture1;
if (context != null) {
disallowGesture1 = context.disallowGesture;
}
if (disallowGesture1 == null) {
disallowGesture1 = null;
}
const items = [arg0, disallowGesture, disallowGesture1];
const effect = noop.useEffect(() => {
if (closure_0) {
let result = disallowGesture.set(true);
if (disallowGesture1 != null) {
let result1 = disallowGesture1.set(true);
}
return () => {
const result = disallowGesture.set(false);
if (disallowGesture1 != null) {
const result1 = disallowGesture1.set(false);
}
};
}
}, items);
};