amis-rpc-design/node_modules/react-native/Libraries/Core/setUpDOM.js
2023-10-07 19:42:30 +08:00

19 lines
602 B
JavaScript

/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
* @format
*/
import DOMRect from '../DOM/Geometry/DOMRect';
import DOMRectReadOnly from '../DOM/Geometry/DOMRectReadOnly';
// $FlowExpectedError[cannot-write] The global isn't writable anywhere but here, where we define it
global.DOMRect = DOMRect;
// $FlowExpectedError[cannot-write] The global isn't writable anywhere but here, where we define it
global.DOMRectReadOnly = DOMRectReadOnly;