From 7174ea46804b5c1b45bf5f1b030f9374fc870cbd Mon Sep 17 00:00:00 2001 From: anurag alla Date: Mon, 19 Sep 2016 12:04:58 +0530 Subject: [PATCH] Updated to react-native 0.33 Updated to react-native 0.33 and complaint with babel 6 and removed import of missing component in example.js --- Example/.babelrc | 3 ++- Example/Example.js | 1 - Example/package.json | 13 +++++++------ 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Example/.babelrc b/Example/.babelrc index 38fda4d..d0cf03d 100644 --- a/Example/.babelrc +++ b/Example/.babelrc @@ -1,3 +1,4 @@ { - "presets": ["react-native-stage-0/decorator-support"] + "presets": ["react-native"], + "plugins": ["transform-decorators-legacy"] } diff --git a/Example/Example.js b/Example/Example.js index 045c2fb..9068d2f 100644 --- a/Example/Example.js +++ b/Example/Example.js @@ -8,7 +8,6 @@ useStrict(true); // view and model for Counter scene import Counter from './components/Counter'; import store from './model/counter'; -import Test from './components/Test'; const OCounter= observer(Counter); diff --git a/Example/package.json b/Example/package.json index 72d0708..ab40dbe 100644 --- a/Example/package.json +++ b/Example/package.json @@ -8,14 +8,15 @@ }, "dependencies": { "autobind-decorator": "^1.3.3", - "babel-preset-react-native-stage-0": "^1.0.1", - "mobx": "^2.2.0", - "mobx-react": "^3.3.0", - "react": "15.0.2", - "react-native": "^0.26.2", + "babel-plugin-transform-decorators": "^6.13.0", + "babel-plugin-transform-decorators-legacy": "^1.3.4", + "mobx": "^2.5.1", + "mobx-react": "^3.5.6", + "react": "^15.3.1", + "react-native": "^0.33.0", "react-native-button": "github:ide/react-native-button", "react-native-mobx": "file:../", - "react-native-router-flux": "^3.26.10" + "react-native-router-flux": "^3.35.0" }, "devDependencies": { "sane": "^1.3.4"