Merge pull request #460 from realm/sk-react-native-26
Update projects to React Native 0.26.2
This commit is contained in:
commit
ba6e83191b
|
@ -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);
|
||||
|
||||
|
|
|
@ -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:../.."
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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:../.."
|
||||
|
|
|
@ -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:../..",
|
||||
|
|
Loading…
Reference in New Issue