Fix ReactTestApp imports for React Native 0.25
This commit is contained in:
parent
51b7a43c40
commit
55bbcc9e56
|
@ -17,7 +17,7 @@
|
||||||
////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const React = require('react-native');
|
const React = require('react');
|
||||||
const Realm = require('realm');
|
const Realm = require('realm');
|
||||||
const RealmTests = require('realm-tests');
|
const RealmTests = require('realm-tests');
|
||||||
const builder = require('xmlbuilder');
|
const builder = require('xmlbuilder');
|
||||||
|
@ -30,7 +30,7 @@ const {
|
||||||
Text,
|
Text,
|
||||||
View,
|
View,
|
||||||
TouchableNativeFeedback,
|
TouchableNativeFeedback,
|
||||||
} = React;
|
} = require('react-native');
|
||||||
|
|
||||||
RealmTests.registerTests({
|
RealmTests.registerTests({
|
||||||
ListViewTest: require('./tests/listview-test'),
|
ListViewTest: require('./tests/listview-test'),
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const React = require('react-native');
|
const React = require('react');
|
||||||
const Realm = require('realm');
|
const Realm = require('realm');
|
||||||
const tests = require('./tests');
|
const tests = require('./tests');
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ const {
|
||||||
Text,
|
Text,
|
||||||
TouchableHighlight,
|
TouchableHighlight,
|
||||||
View,
|
View,
|
||||||
} = React;
|
} = require('react-native');
|
||||||
|
|
||||||
class ReactTests extends React.Component {
|
class ReactTests extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
|
|
Loading…
Reference in New Issue