Remove react-lifecycles-compat to reduce bundle size impact. - Also bump React, React Native, and babel devDependencies

This commit is contained in:
Matt Hargett
2019-03-01 16:35:26 -08:00
parent daf37aecff
commit 72fc3bae4f
11 changed files with 2641 additions and 1606 deletions

View File

@@ -1,3 +0,0 @@
{
"presets": ["react-native"]
}

View File

@@ -0,0 +1,7 @@
// eslint-disable-next-line import/no-commonjs
module.exports = function(api) {
api.cache(true);
return {
presets: ['module:metro-react-native-babel-preset'],
};
};

View File

@@ -24,10 +24,9 @@
"react-navigation-tabs": "^1.0.2"
},
"resolutions": {
"**/react": "16.3.1",
"**/prop-types": "15.6.0",
"**/react-lifecycles-compat": "3.0.4",
"**/hoist-non-react-statics": "2.5.0"
"**/react": "16.6.3",
"**/prop-types": "15.6.2",
"**/hoist-non-react-statics": "2.5.5"
},
"devDependencies": {
"babel-preset-expo": "^5.0.0"

File diff suppressed because it is too large Load Diff

View File

@@ -15,7 +15,7 @@
"test": "jest",
"lint": "eslint .",
"format": "eslint . --fix",
"babel": "babel --no-babelrc --plugins=transform-es2015-block-scoping,transform-es2015-modules-commonjs,transform-react-jsx,transform-class-properties,transform-object-rest-spread,transform-flow-strip-types src --copy-files --out-dir dist --ignore '**/__tests__/**','*.ts'",
"babel": "babel --no-babelrc --plugins=@babel/transform-block-scoping,@babel/transform-modules-commonjs,@babel/transform-react-jsx,@babel/proposal-class-properties,@babel/proposal-object-rest-spread,@babel/transform-flow-strip-types src --copy-files --out-dir dist --ignore '**/__tests__/**','*.ts'",
"tsc": "tsc",
"build": "yarn babel --out-dir dist && yarn tsc",
"dev": "yarn babel --watch src --out-dir example/node_modules/@react-navigation/core/dist",
@@ -43,37 +43,39 @@
"homepage": "https://github.com/react-navigation/react-navigation-core#readme",
"dependencies": {
"create-react-context": "0.2.2",
"hoist-non-react-statics": "^3.0.1",
"hoist-non-react-statics": "^2.5.5",
"path-to-regexp": "^1.7.0",
"query-string": "^6.2.0",
"react-is": "^16.5.2",
"react-lifecycles-compat": "^3.0.4"
"react-is": "^16.6.3"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-jest": "^22.4.1",
"babel-plugin-transform-class-properties": "^6.13.0",
"babel-plugin-transform-es2015-block-scoping": "^6.26.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.13.0",
"babel-plugin-transform-react-jsx": "^6.18.0",
"babel-preset-react-native": "^4.0.0",
"@babel/cli": "^7.2.3",
"@babel/core": "^7.3.4",
"@babel/plugin-proposal-class-properties": "7.3.4",
"@babel/plugin-proposal-object-rest-spread": "7.3.4",
"@babel/plugin-transform-block-scoping": "7.3.4",
"@babel/plugin-transform-modules-commonjs": "7.2.0",
"@babel/plugin-transform-flow-strip-types": "7.3.4",
"@babel/plugin-transform-react-jsx": "7.3.0",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^24.1.0",
"metro-react-native-babel-preset": "^0.49.2",
"conventional-changelog-cli": "^2.0.5",
"eslint": "^4.12.1",
"eslint-config-satya164": "^1.0.1",
"eslint-plugin-react-native-globals": "^0.1.0",
"husky": "^1.1.2",
"jest": "^22.1.3",
"jest-expo": "^30.0.0",
"prettier": "^1.8.2",
"react": "16.3.1",
"react-dom": "16.3.1",
"react-native": "^0.55.4",
"react-test-renderer": "16.3.1",
"jest": "^24.1.0",
"jest-expo": "^32.0.0",
"prettier": "^1.13.6",
"react": "16.6.3",
"react-dom": "16.6.3",
"react-native": "^0.58.6",
"react-test-renderer": "16.6.3",
"release-it": "^7.6.1",
"ts-jest": "^23.10.4",
"typescript": "^3.1.3"
"ts-jest": "^24.0.0",
"typescript": "^3.3.3333"
},
"peerDependencies": {
"react": "*"

View File

@@ -1,6 +0,0 @@
{
"extends": "../../.eslintrc",
"env": {
"jest": true
},
}

View File

@@ -1,6 +0,0 @@
{
"extends": "../../../.eslintrc",
"env": {
"jest": true
},
}

View File

@@ -1,5 +1,4 @@
import React from 'react';
import { polyfill } from 'react-lifecycles-compat';
import invariant from '../utils/invariant';
function createNavigator(NavigatorView, router, navigationConfig) {
@@ -70,7 +69,7 @@ function createNavigator(NavigatorView, router, navigationConfig) {
}
}
return polyfill(Navigator);
return Navigator;
}
export default createNavigator;

View File

@@ -1,6 +0,0 @@
{
"extends": "../../../.eslintrc",
"env": {
"jest": true
},
}

View File

@@ -1,6 +0,0 @@
{
"extends": "../../../.eslintrc",
"env": {
"jest": true
},
}

File diff suppressed because it is too large Load Diff