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 React from 'react';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Component,
|
|
||||||
Navigator,
|
Navigator,
|
||||||
Platform,
|
Platform,
|
||||||
StatusBar,
|
StatusBar,
|
||||||
|
@ -35,7 +34,7 @@ import TodoListView from './todo-listview';
|
||||||
import realm from './realm';
|
import realm from './realm';
|
||||||
import styles from './styles';
|
import styles from './styles';
|
||||||
|
|
||||||
export default class TodoApp extends Component {
|
export default class TodoApp extends React.Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
"start": "react-native start"
|
"start": "react-native start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"react": "^0.14.8",
|
"react": "15.0.2",
|
||||||
"react-native": "^0.25.1",
|
"react-native": "^0.26.2",
|
||||||
"realm": "file:../.."
|
"realm": "file:../.."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,11 +18,11 @@
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
import React from 'react-native';
|
import React from 'react';
|
||||||
|
|
||||||
const rootComponentPromise = new Promise((resolve) => {
|
const rootComponentPromise = new Promise((resolve) => {
|
||||||
// Require internal module here so the promise is rejected if there is an error.
|
// 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;
|
let renderComponent = Mount.renderComponent;
|
||||||
|
|
||||||
Mount.renderComponent = function() {
|
Mount.renderComponent = function() {
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Component,
|
|
||||||
StyleSheet,
|
StyleSheet,
|
||||||
Text,
|
Text,
|
||||||
View,
|
View,
|
||||||
|
@ -355,7 +354,7 @@ class RNSqliteTests extends Tests {
|
||||||
|
|
||||||
const apiTests = [new RealmTests, new RNSqliteTests, new RNStoreTests];
|
const apiTests = [new RealmTests, new RNSqliteTests, new RNStoreTests];
|
||||||
|
|
||||||
export default class ReactNativeBenchmarks extends Component {
|
export default class ReactNativeBenchmarks extends React.Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
"start": "react-native start"
|
"start": "react-native start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"react": "^0.14.8",
|
"react": "15.0.2",
|
||||||
"react-native": "^0.25.1",
|
"react-native": "^0.26.2",
|
||||||
"react-native-sqlite-storage": "^2.1.3",
|
"react-native-sqlite-storage": "^2.1.3",
|
||||||
"react-native-store": "^0.4.1",
|
"react-native-store": "^0.4.1",
|
||||||
"realm": "file:../.."
|
"realm": "file:../.."
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
"start": "react-native start"
|
"start": "react-native start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"react": "^0.14.8",
|
"react": "15.0.2",
|
||||||
"react-native": "^0.25.1",
|
"react-native": "^0.26.2",
|
||||||
"react-native-fs": "^1.1.0",
|
"react-native-fs": "^1.1.0",
|
||||||
"xmlbuilder": "^4.2.1",
|
"xmlbuilder": "^4.2.1",
|
||||||
"realm": "file:../..",
|
"realm": "file:../..",
|
||||||
|
|
Loading…
Reference in New Issue