Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,44 @@
|
||||
/* Metro module 12763; source: design/components/Menu/native/MenuItem.tsx; dependencies: [31, 33, 4501, 12761, 4580, 6746, 6749, 2] */
|
||||
function _fun97540(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97540, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12953:6, offset: 0x02188556, size: 215 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_5 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({formIcon: {'width': 20,
|
||||
'height': 20}, formLabel: {'fontSize': 14, 'fontWeight': '500'}});
|
||||
value = value.forwardRef(_fun97541);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/components/Menu/native/MenuItem.tsx');
|
||||
exports.MenuItem = value;
|
||||
}
|
||||
|
||||
function _fun97541({label, IconComponent, iconSource, showIconFirst, style, disabled, action}, a1) { // fn#97541, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12953:233, offset: 0x0218862d, size: 387 bytes, params: 3, frame: 25
|
||||
showIconFirst = !(showIconFirst === undefined) && showIconFirst;
|
||||
disabled = !(disabled === undefined) && disabled;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const binding = env0_3;
|
||||
const useContext = binding.useContext;
|
||||
const MenuContext = (require(12761) /* metro dependency 12761: Menu */).MenuContext;
|
||||
const env0_1 = Reflect.apply(useContext, binding, [MenuContext]).menuClose;
|
||||
const r7 = IconComponent != null ? <IconComponent size="sm" /> : iconSource != null ? ((Component) => <Component source={iconSource} style={styles.formIcon} />)(importDefault(4580) /* metro dependency 4580: Icon */) : null;
|
||||
const FormRow = importDefault(6746) /* metro dependency 6746: FormRow */;
|
||||
const defaultImport2Props = {ref: a1, style: style, accessibilityRole: 'menuitem', disabled: disabled,
|
||||
leading: iconSource != null && showIconFirst ? r7 : null};
|
||||
let r5 = iconSource == null || showIconFirst ? null : r7;
|
||||
defaultImport2Props.trailing = r5;
|
||||
if (typeof label !== 'string') {
|
||||
r5 = label;
|
||||
} else {
|
||||
value = importDefault(6749) /* metro dependency 6749: FormLabel */;
|
||||
value = ((Component) => <Component text={label} style={styles.formLabel} />)(value);
|
||||
r5 = value;
|
||||
}
|
||||
defaultImport2Props.label = r5;
|
||||
defaultImport2Props.onPress = function() {
|
||||
action();
|
||||
menuClose();
|
||||
};
|
||||
return <FormRow {...defaultImport2Props} />;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user