Skip to content

Upgrade react native#236

Merged
Tug merged 9 commits intomasterfrom
upgrade/react-native
Nov 19, 2018
Merged

Upgrade react native#236
Tug merged 9 commits intomasterfrom
upgrade/react-native

Conversation

@Tug
Copy link
Copy Markdown
Contributor

@Tug Tug commented Nov 14, 2018

Requires wordpress-mobile/react-native-recyclerview-list#10
Requires wordpress-mobile/react-native-aztec#74

This PR upgrades react-native to v0.57.5 as well as react to v16.6.1 ([email protected]'s peer dependency version).

It does the necessary updates in the babel config, dependencies and submodules.
It also replaces the babel transform that was importing react automatically when JSX was found with a custom one importing the gutenberg package instead (see #184)

Testing Instructions

  • Check that nothing breaks:
  • yarn install (Installing the required dependencies)
  • yarn start (Starting the metro server)
  • yarn ios (Running the app for ios)
  • yarn android (Running the app for android)
  • bash ./.travis/travis-checks-js.sh (Tests)

@Tug Tug self-assigned this Nov 14, 2018
@Tug Tug requested a review from koke November 14, 2018 12:47
@etoledom
Copy link
Copy Markdown
Contributor

As a note
It's also important to update this:

Thank you for taking care of this!

@Tug Tug force-pushed the upgrade/react-native branch from 7a660cb to 3cf0917 Compare November 16, 2018 09:19
@gziolo
Copy link
Copy Markdown
Contributor

gziolo commented Nov 19, 2018

Nice :)

@Tug Tug force-pushed the upgrade/react-native branch 2 times, most recently from 6c8af74 to 13e67bf Compare November 19, 2018 11:26
@gziolo gziolo self-requested a review November 19, 2018 11:29
},
],
],
overrides: [
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hope it works properly :)

@Tug Tug force-pushed the upgrade/react-native branch 3 times, most recently from 00300ea to 3a9bb25 Compare November 19, 2018 12:11
@Tug Tug force-pushed the upgrade/react-native branch from 3a9bb25 to 45a042c Compare November 19, 2018 12:13
@mzorz mzorz self-requested a review November 19, 2018 12:16
"scssfiles": "src/*.scss src/**/*.scss"
},
"engines": {
"node": ">=8.0.0 <9.0.0",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add a comment here explaining why we're differing from Gutenberg? IDK something like

// setting version here due to following error with module sane when running node 9.x:
//        error [email protected]: The engine "node" is incompatible with this module. Expected version "6.* || 8.* || >= 10.*".
// to be revisited, as we don't need to impose a limit in version per se

wdyt?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sadly we can't add comments to package.json, it needs to be in proper json format.
We can update the Readme or some other place

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh 🤦‍♂️ I was confused and thought we were on babel.config.js - ok updating the README 👍

Copy link
Copy Markdown
Contributor

@mzorz mzorz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM tested, works well after adding the node versioning tweak. Left a minor request to add a comment so people in the future understand why the node engine has been set to >=8 < 9.

@Tug Tug force-pushed the upgrade/react-native branch from 7c20614 to a7c4a4b Compare November 19, 2018 13:42
@Tug Tug merged commit 6e78338 into master Nov 19, 2018
@Tug Tug deleted the upgrade/react-native branch November 19, 2018 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants