Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,56 @@
|
||||
/* Metro module 6766; source: modules/a11y/native/TextWithIOSLinkWorkaround.tsx; dependencies: [31, 27, 33, 4501, 6767, 4559, 4573, 477, 2] */
|
||||
function _fun53296(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6944:6, offset: 0x013448cb, size: 219 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({column: {'flexDirection': 'column',
|
||||
'flexShrink': 1}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/a11y/native/TextWithIOSLinkWorkaround.tsx');
|
||||
exports.TextWithIOSLinkWorkaround = TextWithIOSLinkWorkaround;
|
||||
}
|
||||
|
||||
function findLinks(a0) { // fn#53297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6944:219, offset: 0x013449a6, size: 67 bytes, params: 2, frame: 12
|
||||
const Children = env0_2.Children;
|
||||
const value2 = Children.toArray(a0);
|
||||
return value2.filter(env0_2.isValidElement).flatMap(_fun53298);
|
||||
}
|
||||
|
||||
function TextWithIOSLinkWorkaround(a0) { // fn#53299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6944:606, offset: 0x01344a5c, size: 202 bytes, params: 2, frame: 21
|
||||
const children = a0.children;
|
||||
let value = Object.create(null);
|
||||
value.children = 0;
|
||||
const value2 = copyDataProperties({}, a0, value, undefined);
|
||||
const styles = useStyles();
|
||||
const value4 = (require(4559) /* metro dependency 4559: useIsScreenReaderEnabledNative */).useIsScreenReaderEnabled();
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
value = <Text {...value2}>{children}</Text>;
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (platformUtilsModule.isIOS()) {
|
||||
if (value4) {
|
||||
return (
|
||||
<View style={styles.column}>
|
||||
{value}
|
||||
{findLinks(children)}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun53298(a0) { // fn#53298, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6944:304, offset: 0x013449e9, size: 115 bytes, params: 2, frame: 14
|
||||
const type = a0.type;
|
||||
const value = environment.__proto__;
|
||||
const I18nLinkComponent = (require(6767) /* metro dependency 6767: migration */).I18nLinkComponent;
|
||||
if (type === I18nLinkComponent || a0.props.accessibilityRole === 'link') {
|
||||
return [a0];
|
||||
}
|
||||
const props = a0.props;
|
||||
return props.children != null ? findLinks(props.children) : [];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user