Commit Graph

3 Commits

Author SHA1 Message Date
Dan Abramov 7f1a38af8f React sync (partial)
Summary:
This isn't a full sync. It only includes cherry-picked commits for Fresh, as well as previously cherry-picked commits during last two syncs.

Changes that are already synced:

* https://github.com/facebook/react/pull/15604
* https://github.com/facebook/react/pull/15786
* https://github.com/facebook/react/pull/15802

New changes:

* https://github.com/gaearon/react/commit/5be064b591ac1e54e3f4afb3193df12ae8841c85
* https://github.com/gaearon/react/commit/6b6d8fa1830d45ea6bd1603227e6b4e6de0606fb
* https://github.com/gaearon/react/commit/92bcf2a63cf61beb3112319bb5e770c854c1dd35
* https://github.com/gaearon/react/commit/7b4c2f7edeb1b9afaa38a306bf0c9d7ba4bf3e9f
* https://github.com/gaearon/react/commit/39a3f2f1609d27e825458bb87e10e36f928456d2
* https://github.com/gaearon/react/commit/cabdebb3b7bba47300c2490737d15da1acef8b95
* https://github.com/gaearon/react/commit/a27767141278313015613473ee63033c86af4acc
* https://github.com/gaearon/react/commit/86aad18a66adcc7075ae98a3311fd04287befdce
* https://github.com/gaearon/react/commit/25b3e07039d937240315df9efa4d839b53ee8680
* https://github.com/gaearon/react/commit/ffee2957e2709e7d178eafd8635be8ef86ce2da0
* https://github.com/gaearon/react/commit/a817bc5462cf90a4ceb3bf6257fcc03874550077
* https://github.com/gaearon/react/commit/abb2f0fbaf2a4fc310ff78c31295c8686a868dac
* https://github.com/gaearon/react/commit/2e20d9ed81d3a923114269ae2d9bddf3afdfecfd
* https://github.com/gaearon/react/commit/5d3502448c53a7d53f8b7f0640c30aeeff6a1113
* https://github.com/gaearon/react/commit/6628573cb9bf4915fab9a10295c5c3d57bbff637
* https://github.com/gaearon/react/commit/5815bfff8c7b00b6976e77b7a89ce1244c8b239d

**This might look like a lot but note that very few of these actually touch the renderer code.** Most affect integration tests and `react-refresh` package which **has already been synced separately**.

So this is about getting in a few renderer changes that were included in those commits. That's very self-contained.

The renderer source diff is this: https://gist.github.com/gaearon/ddbda5845b4dba0d9915e2ed7f7b11e2. You can also see that in prod bundles below there's only one meaningful change (`type` used instead of `elementType`) which in that case is equivalent.

Reviewed By: rickhanlonii

Differential Revision: D15898205

fbshipit-source-id: 19619f4ff01f24765613f19e826b0199485d81bb
2019-06-19 07:54:28 -07:00
Rick Hanlon c1e03b34df Sync commit from React
Summary: This diff syncs a commit from React to bring in https://github.com/facebook/react/pull/15802#pullrequestreview-245969201

Reviewed By: cpojer

Differential Revision: D15660020

fbshipit-source-id: 15d2413a69968b2898bb37d256f35bc09ebc8d58
2019-06-05 15:16:25 -07:00
James Ide 69d1ed731b Sync React with Haste-style imports rewritten to use path-based imports instead (#25100)
Summary:
**This is a manual React sync to replace Haste names with paths so that the removal of Haste is not blocked on a normal React sync. This is a one-time special case; in the future, React will generate renderers that use paths instead of Haste.**

This commit uses the same base commit of React that's currently in RN (React ec6691a68716bc59291746fc62f374a56fb435c9) plus a commit in the React repo that removes Haste-style imports from the renderer (61f62246c8cfb76a4a19d1661eeaa5822ec37b36) and a commit to make the shims import from `implementations` (https://github.com/facebook/react/pull/15786).

I built React in the React repo with `yarn build` and copied over the `oss` directory into one called `implementations` and removed the `*.fb.js` files.

## Changelog

[General] [Changed] - Sync React with Haste-style imports rewritten to use path-based imports instead
Pull Request resolved: https://github.com/facebook/react-native/pull/25100

Reviewed By: yungsters

Differential Revision: D15575646

Pulled By: cpojer

fbshipit-source-id: adf25f9826b71729043b65ba1afd20d14d8c19c4
2019-06-05 04:19:06 -07:00