Skip to content
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.

Commit

Permalink
Merge pull request #183 from ueno-llc/feature/rn-57
Browse files Browse the repository at this point in the history
React Native 0.57
  • Loading branch information
birkir authored Aug 27, 2018
2 parents 078bfa6 + 402d725 commit 51db681
Show file tree
Hide file tree
Showing 23 changed files with 1,501 additions and 567 deletions.
8 changes: 7 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{
"presets": ["react-native"],
"presets": ["module:metro-react-native-babel-preset"],
"sourceMaps": "inline",
"plugins": [
[
'@babel/plugin-proposal-decorators',
{
legacy: true
}
],
[
"module-resolver", {
"extensions": [
Expand Down
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ android {
ndk {
abiFilters "armeabi-v7a", "x86"
}
missingDimensionStrategy "RNN.reactNativeVersion", "reactNative56"
missingDimensionStrategy "RNN.reactNativeVersion", "reactNative57"
multiDexEnabled true
testBuildType System.getProperty('testBuildType', 'debug')
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ subprojects { subproject ->
android {
variantFilter { variant ->
def names = variant.flavors*.name
if (names.contains("reactNative51") || names.contains("reactNative55")) {
if (names.contains("reactNative51") || names.contains("reactNative55") || names.contains("reactNative56")) {
setIgnore(true)
}
}
Expand Down
11 changes: 11 additions & 0 deletions metro.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const { mergeConfig } = require('metro-config');
const { DEFAULT } = require('react-native/local-cli/util/Config');

const config = {
resolver: {
sourceExts: ['js', 'json', 'ts', 'tsx', 'css'],
},
transformModulePath: require.resolve('./scripts/transformer.js'),
};

module.exports = mergeConfig(DEFAULT, config);
39 changes: 20 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"tslint": "tslint 'src/**/*.ts?(x)'",
"precommit": "lint-staged",
"prepush": "npm run test",
"prepare": "patch-package"
"prepare": "patch-package && if [ -f ./scripts/postinstall.sh ]; then sh ./scripts/postinstall.sh; fi"
},
"lint-staged": {
"*.{ts,tsx}": [
Expand All @@ -28,21 +28,22 @@
"date-fns": "1.29.0",
"jsc-android": "224109.1.0",
"lodash": "4.17.10",
"mobx": "5.0.3",
"mobx-react": "5.2.3",
"mobx-state-tree": "3.0.2",
"mobx": "5.1.0",
"mobx-react": "5.2.5",
"mobx-state-tree": "3.2.3",
"react": "16.4.2",
"react-native": "0.56.0",
"react-native-code-push": "5.4.1",
"react-native": "0.57.0-rc.3",
"react-native-code-push": "5.4.2",
"react-native-config": "0.11.5",
"react-native-fast-image": "4.0.14",
"react-native-fast-image": "5.0.3",
"react-native-firebase": "4.3.8",
"react-native-navigation": "2.0.2452",
"react-native-navigation": "2.0.2501",
"react-native-sentry": "0.39.0",
"react-native-version-number": "0.3.4"
},
"devDependencies": {
"@babel/core": "7.0.0-beta.56",
"@babel/core": "7.0.0-rc.3",
"@babel/plugin-proposal-decorators": "7.0.0-rc.3",
"@firebase/app-types": "0.3.2",
"@types/core-decorators": "^0.20.0",
"@types/date-fns": "^2.6.0",
Expand All @@ -52,20 +53,20 @@
"@types/jest": "23.3.1",
"@types/lodash": "4.14.116",
"@types/mobx-devtools-mst": "0.9.0",
"@types/react": "16.4.8",
"@types/react-native": "0.56.6",
"@types/react-native-navigation": "1.1.12",
"@types/react": "16.4.12",
"@types/react-native": "0.56.14",
"@types/react-native-navigation": "2.0.0",
"@types/react-test-renderer": "16.0.2",
"babel-core": "^7.0.0-0",
"babel-jest": "23.4.2",
"babel-plugin-module-resolver": "3.1.1",
"babel-preset-react-native": "5.0.2",
"detox": "8.1.4",
"enzyme": "3.4.0",
"enzyme-adapter-react-16": "1.2.0",
"detox": "8.2.3",
"enzyme": "3.5.0",
"enzyme-adapter-react-16": "1.3.0",
"husky": "0.14.3",
"jest": "23.4.2",
"lint-staged": "7.2.0",
"jest": "23.5.0",
"lint-staged": "7.2.2",
"mobx-devtools": "0.9.18",
"mobx-devtools-mst": "0.9.18",
"patch-package": "5.1.1",
Expand All @@ -76,10 +77,10 @@
"react-native-ueno-css-modules": "1.0.12",
"react-test-renderer": "16.4.2",
"stylus": "0.54.5",
"ts-jest": "23.1.3",
"ts-jest": "23.1.4",
"tslib": "1.9.3",
"tslint": "5.11.0",
"tslint-config-airbnb": "5.9.2",
"tslint-config-airbnb": "5.10.0",
"tslint-react": "3.6.0",
"typescript": "3.0.1"
},
Expand Down
File renamed without changes.
Loading

0 comments on commit 51db681

Please sign in to comment.