diff --git a/examples/ReactExample/components/todo-app.js b/examples/ReactExample/components/todo-app.js index 31e0d55a..c0d03f70 100644 --- a/examples/ReactExample/components/todo-app.js +++ b/examples/ReactExample/components/todo-app.js @@ -21,7 +21,6 @@ import React from 'react'; import { - Component, Navigator, Platform, StatusBar, @@ -35,7 +34,7 @@ import TodoListView from './todo-listview'; import realm from './realm'; import styles from './styles'; -export default class TodoApp extends Component { +export default class TodoApp extends React.Component { constructor(props) { super(props); diff --git a/examples/ReactExample/package.json b/examples/ReactExample/package.json index ce59f399..22a0147e 100644 --- a/examples/ReactExample/package.json +++ b/examples/ReactExample/package.json @@ -6,8 +6,8 @@ "start": "react-native start" }, "dependencies": { - "react": "^0.14.8", - "react-native": "^0.25.1", + "react": "15.0.2", + "react-native": "^0.26.2", "realm": "file:../.." } } diff --git a/examples/ReactExample/tests/util.js b/examples/ReactExample/tests/util.js index 5ee41443..800118c5 100644 --- a/examples/ReactExample/tests/util.js +++ b/examples/ReactExample/tests/util.js @@ -18,11 +18,11 @@ 'use strict'; -import React from 'react-native'; +import React from 'react'; const rootComponentPromise = new Promise((resolve) => { // Require internal module here so the promise is rejected if there is an error. - let Mount = require('react-native/Libraries/ReactNative/ReactNativeMount'); + let Mount = require('react/lib/ReactNativeMount'); let renderComponent = Mount.renderComponent; Mount.renderComponent = function() { diff --git a/examples/ReactNativeBenchmarks/benchmarks.js b/examples/ReactNativeBenchmarks/benchmarks.js index ea8c2322..1e397793 100644 --- a/examples/ReactNativeBenchmarks/benchmarks.js +++ b/examples/ReactNativeBenchmarks/benchmarks.js @@ -21,7 +21,6 @@ import React from 'react'; import { - Component, StyleSheet, Text, View, @@ -355,7 +354,7 @@ class RNSqliteTests extends Tests { const apiTests = [new RealmTests, new RNSqliteTests, new RNStoreTests]; -export default class ReactNativeBenchmarks extends Component { +export default class ReactNativeBenchmarks extends React.Component { constructor(props) { super(props); diff --git a/examples/ReactNativeBenchmarks/package.json b/examples/ReactNativeBenchmarks/package.json index 823ee573..35b67f07 100644 --- a/examples/ReactNativeBenchmarks/package.json +++ b/examples/ReactNativeBenchmarks/package.json @@ -6,8 +6,8 @@ "start": "react-native start" }, "dependencies": { - "react": "^0.14.8", - "react-native": "^0.25.1", + "react": "15.0.2", + "react-native": "^0.26.2", "react-native-sqlite-storage": "^2.1.3", "react-native-store": "^0.4.1", "realm": "file:../.." diff --git a/tests/react-test-app/package.json b/tests/react-test-app/package.json index be90074d..6e9f6953 100644 --- a/tests/react-test-app/package.json +++ b/tests/react-test-app/package.json @@ -6,8 +6,8 @@ "start": "react-native start" }, "dependencies": { - "react": "^0.14.8", - "react-native": "^0.25.1", + "react": "15.0.2", + "react-native": "^0.26.2", "react-native-fs": "^1.1.0", "xmlbuilder": "^4.2.1", "realm": "file:../..",