Commit Graph

6 Commits

Author SHA1 Message Date
George Zahariev 608029aed2 Convert unannotated variable declaration with cast init to annotated variable declaration in xplat/js (#42880)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/42880

Convert `const x = (a: T)` into `const x: T = a`. These are equivalent in Flow, and helps reduce the amount of colon-casts.

```
js1 flow-runner codemod flow/castToAnnotatedVariable --target colon xplat/js
```

Changelog: [Internal]

drop-conflicts

Reviewed By: SamChou19815

Differential Revision: D53392999

fbshipit-source-id: 3b4602618d6990e8642b423edaeb4e89b01a199a
2024-02-05 23:07:17 -08:00
Rubén Norte 123fd9a535 Back out "Revert D52875998: [RN] Move DOM APIs to private directory"
Summary:
Changelog: [internal]

bypass-github-export-checks

Reviewed By: EdmondChuiHW

Differential Revision: D52958336

fbshipit-source-id: 61843a07e249784914f632932011ee18d106223c
2024-01-22 09:47:08 -08:00
Himanshi Goyal 7475e2b712 Revert D52875998: Move DOM APIs to private directory
Differential Revision:
D52875998

Original commit changeset: c6c96eedcc54

Original Phabricator Diff: D52875998

fbshipit-source-id: 75d6c656551cd22f817058263207da47dc89228b
2024-01-22 06:53:20 -08:00
Rubén Norte 1d3349e968 Move DOM APIs to private directory (#42386)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/42386

The new DOM APIs are completely private at the moment, so they make them a good candidate to test the new directory structure (and make sure everything works correctly in CI, etc.). This moves those files to `src/private/dom`.

Changelog: [internal]

Reviewed By: huntie

Differential Revision: D52875998

fbshipit-source-id: c6c96eedcc54d47e3afff98fa2d912f9d83f3460
2024-01-22 04:05:20 -08:00
Moti Zilberman d6e0bc714a Enable lint/sort-imports everywhere (#41334)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41334

TSIA.

Changelog: [Internal]

Reviewed By: robhogan

Differential Revision: D51025812

fbshipit-source-id: e10d437be775a6b80946483aa96460f34927f870
2023-11-06 12:59:38 -08:00
Rubén Norte f193b1774c Enable MutationObserver in RNTester (#38101)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38101

This adds a few examples of using `MutationObserver` in React Native to RNTester.

`MutationObserver` isn't yet enabled so these shouldn't be accessible normally for the time being.

Changelog: [internal]

Reviewed By: NickGerleman

Differential Revision: D46149087

fbshipit-source-id: 8374b5915b8474a17a2f2e3277a9f409f6ab8380
2023-07-03 15:34:34 -07:00