Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
45 lines
1.6 KiB
TypeScript
45 lines
1.6 KiB
TypeScript
// Module ID: 16956
|
|
// Function ID: 16957
|
|
// Name: ContextMenuCommandAppScreen
|
|
// Dependencies: [19, 21, 4606, 576, 7054, 7122, 16955, 7128, 2]
|
|
// Exports: default
|
|
|
|
// Module 16956 (ContextMenuCommandAppScreen)
|
|
import nativeDefault from "native" /* 576 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const jsx = fn(21).jsx;
|
|
const createStyles = fn(4606);
|
|
const obj2 = { list: { marginHorizontal: nativeDefault.space.PX_16 } };
|
|
let closure_4 = createStyles.createStyles(obj2);
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/application_commands/native/ContextMenuCommandAppScreen.tsx");
|
|
|
|
export default function ContextMenuCommandAppScreen(route) {
|
|
const params = route.route.params;
|
|
let section = params.section;
|
|
const commands = params.commands;
|
|
const onPressCommand = params.onPressCommand;
|
|
let items = [commands.length];
|
|
const items1 = [commands, onPressCommand, section];
|
|
const memo = onPressCommand.useMemo(() => {
|
|
const items = [commands.length];
|
|
return items;
|
|
}, items);
|
|
const callback = onPressCommand.useCallback((arg0, arg1) => {
|
|
section = tmp;
|
|
const diff = commands.length - 1;
|
|
return jsx(section(commands[6]), {
|
|
item: commands[arg1],
|
|
onPress() {
|
|
return onPressCommand(closure_0);
|
|
},
|
|
section,
|
|
start: 0 === arg1,
|
|
end: arg1 === diff
|
|
}, commands[arg1].id);
|
|
}, items1);
|
|
const tmp = section(commands[5])();
|
|
const tmp4 = closure_4();
|
|
return jsx(section(commands[7]), { style: closure_4().list, sections: memo, estimatedListSize: "windowSize", itemSize: tmp, insetEnd: section(commands[4])({ includeKeyboardHeight: true }).insets.bottom, renderItem: callback });
|
|
};
|