Commit Graph

7 Commits

Author SHA1 Message Date
Min ho Kim 84f5ebe4f9 Fix typos (#25770)
Summary:
Fix typos mostly in comments and some string literals.

## Changelog

[General] [Fixed] - Fix typos
Pull Request resolved: https://github.com/facebook/react-native/pull/25770

Differential Revision: D16437857

Pulled By: cpojer

fbshipit-source-id: ffeb4d6b175e341381352091134f7c97d78c679f
2019-07-23 03:23:11 -07:00
Dan Abramov 615902eb78 Partial React sync
Summary: Includes only https://github.com/facebook/react/pull/15797.

Reviewed By: rickhanlonii

Differential Revision: D16030310

fbshipit-source-id: c9c52fcd4e170551054ac608f6f7afd6a85bb74e
2019-06-27 08:21:29 -07:00
Dan Abramov 0a17699fd5 Recover from render errors by remounting root
Summary: This updates the renderer and Fresh packages to pull in the new error handling behavior. The new feature is that roots that errored on last save get remounted after an edit. This allows much faster iteration in the Fast Refresh mode as you don't need to do a full reload after typos.

Reviewed By: bvaughn

Differential Revision: D15967396

fbshipit-source-id: 96a82e6a4e00a8cb636d7bca037a1a43552a4cd2
2019-06-24 13:54:40 -07:00
Dan Abramov 5d29590cd4 Update renderer and packages
Summary:
This pulls in the latest package updates for Fresh. It doesn't have any user-observable behavior.

The renderer is rebuilt on top of the last cherry-picked sync. I cherry-picked https://github.com/facebook/react/pull/15928 on top of it.

Reviewed By: rickhanlonii

Differential Revision: D15901887

fbshipit-source-id: ccd974f79e4c0a2a8a8cab0d472deeaedf1e3ddd
2019-06-20 21:18:46 -07:00
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