Skip to content

Commit

Permalink
Upgrade to React Native 0.57.0
Browse files Browse the repository at this point in the history
Both updrade tools failed to run:
 * react-native-git-upgrade
 * react-native upgrade

This will be a manual but thorough old-school upgrade.
Not a problem, since we did that already for all but the last upgrade.

First step is just to upgrade the dependencies and the flow config file.

We also replace "babel-preset-react-native" with "metro-react-native-babel-preset"
and then .babelrc changes to reflect that.
  • Loading branch information
borisyankov committed Sep 29, 2018
1 parent ca99a7e commit 9bf361b
Show file tree
Hide file tree
Showing 4 changed files with 744 additions and 638 deletions.
18 changes: 9 additions & 9 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"presets": [
"react-native"
],
"env": {
"production": {
"plugins": ["transform-remove-console"]
}
}
}
"presets": [
"module:metro-react-native-babel-preset"
],
"env": {
"production": {
"plugins": ["transform-remove-console"]
}
}
}
5 changes: 4 additions & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ sketchy-null
[options]
emoji=true

esproposal.optional_chaining=enable
esproposal.nullish_coalescing=enable

include_warnings=true

module.system=haste
Expand Down Expand Up @@ -94,4 +97,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

[version]
^0.75.0
^0.78.0
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
"lodash.unescape": "^4.0.1",
"lodash.union": "^4.6.0",
"lodash.uniqby": "^4.4.0",
"react": "16.4.1",
"react": "16.5.0",
"react-intl": "^2.4.0",
"react-native": "0.56.1",
"react-native": "0.57.1",
"react-native-device-info": "^0.21.5",
"react-native-fetch-blob": "^0.10.8",
"react-native-image-picker": "^0.26.10",
Expand All @@ -63,7 +63,7 @@
"react-navigation": "^1.5.12",
"react-navigation-redux-helpers": "^1.1.1",
"react-redux": "^5.0.7",
"react-test-renderer": "16.4.1",
"react-test-renderer": "16.5.0",
"redux": "^4.0.0",
"redux-action-buffer": "^1.2.0",
"redux-batched-actions": "^0.3.0",
Expand All @@ -80,9 +80,9 @@
"devDependencies": {
"babel-core": "^6.26.3",
"babel-eslint": "^8.2.3",
"babel-jest": "^23.4.0",
"babel-jest": "^23.6.0",
"babel-plugin-transform-remove-console": "^6.9.4",
"babel-preset-react-native": "^5",
"metro-react-native-babel-preset": "0.45.2",
"coveralls": "^3.0.1",
"deep-freeze": "^0.0.1",
"detox": "^7.3.7",
Expand All @@ -98,7 +98,7 @@
"eslint-plugin-react": "^7.8.2",
"eslint-plugin-react-native": "^3.2.1",
"eslint-plugin-spellcheck": "0.0.6",
"flow-bin": "0.75",
"flow-bin": "0.78",
"flow-coverage-report": "^0.6.0",
"flow-typed": "^2.4.0",
"jest": "^23.4.0",
Expand Down
Loading

0 comments on commit 9bf361b

Please sign in to comment.