diff --git a/example-shared-element-transitions/.babelrc b/example-shared-element-transitions/.babelrc index a885564..224c71b 100644 --- a/example-shared-element-transitions/.babelrc +++ b/example-shared-element-transitions/.babelrc @@ -1,6 +1,3 @@ { - "presets": ["react-native-stage-0"], - "plugins": [ - "transform-decorators-legacy", - ], + "presets": ["babel-preset-exponent"] } diff --git a/example-shared-element-transitions/exp.json b/example-shared-element-transitions/exp.json index 0ab8286..f85b739 100644 --- a/example-shared-element-transitions/exp.json +++ b/example-shared-element-transitions/exp.json @@ -2,7 +2,7 @@ name: "SharedElements", description: "Demonstrate usage of shared element transitions in ex-navigation", slug: "shared-elements", - sdkVersion: "9.0.0", + sdkVersion: "11.0.0", version: "1.0.0", orientation: "portrait", primaryColor: "#cccccc", diff --git a/example-shared-element-transitions/main.js b/example-shared-element-transitions/main.js index f71d427..6b3e5a9 100644 --- a/example-shared-element-transitions/main.js +++ b/example-shared-element-transitions/main.js @@ -8,7 +8,7 @@ import { StatusBar, } from 'react-native'; -import 'exponent'; +import Exponent from 'exponent'; import { NavigationProvider, @@ -40,4 +40,4 @@ class AppContainer extends React.Component { } } -AppRegistry.registerComponent('main', () => AppContainer); +Exponent.registerRootComponent(AppContainer); diff --git a/example-shared-element-transitions/package.json b/example-shared-element-transitions/package.json index 41b4dc9..4c8528e 100644 --- a/example-shared-element-transitions/package.json +++ b/example-shared-element-transitions/package.json @@ -5,13 +5,9 @@ "main": "main.js", "dependencies": { "@exponent/ex-navigation": "file:../", - "exponent": "^9.0.0", + "exponent": "^11.0.2", "lodash": "^4.13.1", - "react": "~15.2.1", - "react-native": "github:exponentjs/react-native#sdk-9.0.0" - }, - "devDependencies": { - "babel-plugin-transform-decorators-legacy": "^1.3.4", - "babel-preset-react-native-stage-0": "^1.0.1" + "react": "~15.3.2", + "react-native": "github:exponentjs/react-native#sdk-11.0.3" } }