Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
36 lines
1.5 KiB
TypeScript
36 lines
1.5 KiB
TypeScript
// Module ID: 7301
|
|
// Function ID: 7302
|
|
// Name: ActionSheetCloseButton
|
|
// Dependencies: [19, 21, 5204, 1114, 5761, 576, 2]
|
|
// Exports: ActionSheetCloseButton
|
|
|
|
// Module 7301 (ActionSheetCloseButton)
|
|
import nativeDefault from "native" /* 576 */;
|
|
import util from "util" /* 1114 */;
|
|
import Pressables from "Pressables" /* 5204 */;
|
|
import XSmallIcon from "XSmallIcon" /* 5761 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = fn;
|
|
const jsx = fn(21).jsx;
|
|
const androidRippleConfig = Object.freeze({ radius: 12 });
|
|
const hitSlop = Object.freeze({ top: 8, right: 8, bottom: 8, left: 8 });
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("design/components/Sheet/native/ActionSheetCloseButton.native.tsx");
|
|
|
|
export const ActionSheetCloseButton = function ActionSheetCloseButton(arg0) {
|
|
({ onPress, variant } = arg0);
|
|
const obj = { accessibilityRole: "button", accessibilityLabel: null, hitSlop: null, androidRippleConfig: null, onPress: null, children: null };
|
|
const intl = util.intl;
|
|
obj.accessibilityLabel = intl.string(util.t.cpT0Cq);
|
|
obj.hitSlop = hitSlop;
|
|
obj.androidRippleConfig = androidRippleConfig;
|
|
obj.onPress = onPress;
|
|
if ("overlay" === variant) {
|
|
let ICON_STRONG = nativeDefault.colors.WHITE;
|
|
} else {
|
|
ICON_STRONG = nativeDefault.colors.ICON_STRONG;
|
|
}
|
|
obj.children = jsx(XSmallIcon.XSmallIcon, { color: ICON_STRONG });
|
|
return jsx(Pressables.PressableOpacity, { accessibilityRole: "button", accessibilityLabel: null, hitSlop: null, androidRippleConfig: null, onPress: null, children: null });
|
|
};
|