Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,64 @@
|
||||
/* Metro module 9059; source: components_native/common/ItemSelectorActionSheet.tsx; dependencies: [31, 33, 3860, 697, 1585, 6275, 6758, 6806, 6277, 7988, 7987, 2] */
|
||||
function _fun70826(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9244:6, offset: 0x01d09dfd, size: 147 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_3 = value.jsx;
|
||||
const env0_4 = value.jsxs;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('components_native/common/ItemSelectorActionSheet.tsx');
|
||||
exports.default = ItemSelectorActionSheet;
|
||||
}
|
||||
|
||||
function ItemSelectorActionSheet({title, body, items, selectedItem, onItemSelect, onClose, hasIcons}) { // fn#70827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9244:229, offset: 0x01d09e90, size: 490 bytes, params: 2, frame: 31
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
const useToken = useTokenModule.useToken;
|
||||
const TABLE_ROW_PADDING = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_PADDING;
|
||||
const value2 = Reflect.apply(useToken, useTokenModule, [TABLE_ROW_PADDING]);
|
||||
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
|
||||
const index = items.findIndex(function({value}) {
|
||||
return value === selectedItem;
|
||||
});
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
const object2 = {scrollable: true};
|
||||
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
|
||||
object2.header = <BottomSheetTitleHeader title={title} trailing={onClose != null ? ((ActionSheetCloseButton) => <ActionSheetCloseButton onPress={onClose} />)((require(6806) /* metro dependency 6806: ActionSheetCloseButtonNative */).ActionSheetCloseButton) : null} />;
|
||||
const BottomSheetScrollView = (require(6277) /* metro dependency 6277 */).BottomSheetScrollView;
|
||||
const object3 = {paddingHorizontal: value2};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.paddingBottom = bottom + PX_16;
|
||||
const TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup;
|
||||
return (
|
||||
<BottomSheet {...object2}>
|
||||
<BottomSheetScrollView contentContainerStyle={object3}>
|
||||
{body}
|
||||
<TableRadioGroup
|
||||
value={index >= 0 ? index : -1}
|
||||
accessibilityLabel={title}
|
||||
hasIcons={hasIcons}
|
||||
onChange={function(a0) {
|
||||
var property = items[a0];
|
||||
if (property != null) {
|
||||
onItemSelect(property.value);
|
||||
}
|
||||
}}
|
||||
>
|
||||
{items.map(_fun70830)}
|
||||
</TableRadioGroup>
|
||||
</BottomSheetScrollView>
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun70830(a0, a1) { // fn#70830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9244:899, offset: 0x01d0a0b7, size: 65 bytes, params: 3, frame: 16
|
||||
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
|
||||
return (
|
||||
<TableRadioRow
|
||||
label={a0.label}
|
||||
value={a1}
|
||||
key={a1}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user