react-native-macos/Libraries/Core
Rubén Norte 673c7617bc Implement DOMRect and DOMRectReadOnly matching Web
Summary:
This adds the `DOMRect` and `DOMRectReadOnly` classes to React Native, mostly following the Web spec.

This is a requirement for `node.getBoundingClientRect()`, which we'll implement in React (in https://github.com/facebook/react/blob/main/packages/react-native-renderer/src/ReactFabricHostConfig.js#L134-L323).

Changelog: [General][Added] - Added Web-compatible `DOMRect` and `DOMRectReadOnly` classes to the global scope.

Reviewed By: ryancat

Differential Revision: D42963222

fbshipit-source-id: bf2ed15bfbfd71822cb6f969f8cc0a67c7834333
2023-02-09 09:36:08 -08:00
..
Devtools Filter out Hermes internal bytecode frames from error stack traces 2023-01-05 11:05:39 -08:00
SegmentFetcher RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
Timers Enable LTI in react-native 2022-12-06 19:34:14 -08:00
__mocks__ Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
__tests__ ESM LogBox 2023-01-03 18:09:06 -08:00
ExceptionsManager.js Fixes an error in the reactConsoleErrorHandler comment (#35830) 2023-01-16 04:23:22 -08:00
ExtendedError.js Add ability to add custom extraData to errors passed to ExceptionsManager 2022-08-15 11:05:58 -07:00
InitializeCore.js Implement DOMRect and DOMRectReadOnly matching Web 2023-02-09 09:36:08 -08:00
NativeExceptionsManager.js RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
RawEventEmitter.js RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
ReactFiberErrorDialog.js RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
ReactNativeVersion.js chore: re-align version to be 1000.0.0 on main everywhere (#34817) 2022-10-04 08:36:21 -07:00
ReactNativeVersionCheck.js Remove $TEMPORARY$object types 2022-11-10 04:48:13 -08:00
checkNativeVersion.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
polyfillPromise.js Remove nonstandard Promise.prototype.done implementation 2022-05-05 03:55:10 -07:00
setUpAlert.js Enable LTI in react-native 2022-12-06 19:34:14 -08:00
setUpBatchedBridge.js Remove unnecessary checks for profiling in dev mode 2022-10-05 15:17:53 -07:00
setUpDOM.js Implement DOMRect and DOMRectReadOnly matching Web 2023-02-09 09:36:08 -08:00
setUpDeveloperTools.js Enable LTI in react-native 2022-12-06 19:34:14 -08:00
setUpErrorHandling.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
setUpGlobals.js Declare some missing globals 2023-02-09 09:36:08 -08:00
setUpNavigator.js Declare some missing globals 2023-02-09 09:36:08 -08:00
setUpPerformance.js Declare some missing globals 2023-02-09 09:36:08 -08:00
setUpReactDevTools.js Add JS changes 2022-11-16 19:47:55 -08:00
setUpReactRefresh.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
setUpRegeneratorRuntime.js RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
setUpSegmentFetcher.js Remove experimental support for Hermes Modules (CommonJS) 2022-12-09 04:00:31 -08:00
setUpTimers.js RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
setUpWebPerformance.js Declare some missing globals 2023-02-09 09:36:08 -08:00
setUpXHR.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00