Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
+52
@@ -0,0 +1,52 @@
|
||||
/* Metro module 4557; source: design/components/AccessibilityView/useAccessibilityViewIsModalToggle.native.tsx; dependencies: [31, 4558, 2] */
|
||||
function _fun38747(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4735:6, offset: 0x010c94f0, size: 115 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/components/AccessibilityView/useAccessibilityViewIsModalToggle.native.tsx');
|
||||
exports.default = useAccessibilityViewIsModalToggle;
|
||||
}
|
||||
|
||||
function useAccessibilityViewIsModalToggle({accessibilityViewIsModal, nativeID}) { // fn#38748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4735:230, offset: 0x010c9563, size: 120 bytes, params: 2, frame: 16
|
||||
accessibilityViewIsModal = !(accessibilityViewIsModal === undefined) && accessibilityViewIsModal;
|
||||
let env0_2 = undefined;
|
||||
const binding = env0_2;
|
||||
env0_2 = binding.useRef(undefined);
|
||||
binding.useEffect(_fun38750, [binding.useCallback(_fun38749, [accessibilityViewIsModal, nativeID])]);
|
||||
}
|
||||
|
||||
function _fun38749() { // fn#38749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4735:357, offset: 0x010c95db, size: 219 bytes, params: 1, frame: 14
|
||||
var current;
|
||||
var nativeIDBinding;
|
||||
var binding;
|
||||
let value = a0;
|
||||
if (value !== undefined ? value : accessibilityViewIsModal) {
|
||||
if (nativeID == null) {
|
||||
throw new global.Error('Must have a unique nativeID when accessibilityViewIsModal is enabled.');
|
||||
}
|
||||
current = env0_2.current;
|
||||
nativeIDBinding = nativeID;
|
||||
if (current !== nativeIDBinding) {
|
||||
binding = env0_2;
|
||||
nativeIDBinding = nativeID;
|
||||
binding.current = nativeIDBinding;
|
||||
value = environment.__proto__;
|
||||
value = importDefault(4558) /* metro dependency 4558: AccessibilityFocusLockManager */;
|
||||
value.enableAccessibilityFocusLock([nativeIDBinding]);
|
||||
}
|
||||
} else {
|
||||
current = env0_2.current;
|
||||
if (current != null) {
|
||||
env0_2.current = undefined;
|
||||
value = environment.__proto__;
|
||||
value = importDefault(4558) /* metro dependency 4558: AccessibilityFocusLockManager */;
|
||||
value.disableAccessibilityFocusLock([current]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun38750() { // fn#38750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4735:657, offset: 0x010c96b6, size: 22 bytes, params: 1, frame: 9
|
||||
env0_3();
|
||||
return _fun38751;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user