diff --git a/tests/react-test-app/index.android.js b/tests/react-test-app/index.android.js index 844cf78f..75bd0741 100644 --- a/tests/react-test-app/index.android.js +++ b/tests/react-test-app/index.android.js @@ -17,7 +17,7 @@ //////////////////////////////////////////////////////////////////////////// 'use strict'; -const React = require('react-native'); +const React = require('react'); const Realm = require('realm'); const RealmTests = require('realm-tests'); const builder = require('xmlbuilder'); @@ -30,7 +30,7 @@ const { Text, View, TouchableNativeFeedback, -} = React; +} = require('react-native'); RealmTests.registerTests({ ListViewTest: require('./tests/listview-test'), diff --git a/tests/react-test-app/index.ios.js b/tests/react-test-app/index.ios.js index 1164823c..cce02e5e 100644 --- a/tests/react-test-app/index.ios.js +++ b/tests/react-test-app/index.ios.js @@ -18,7 +18,7 @@ 'use strict'; -const React = require('react-native'); +const React = require('react'); const Realm = require('realm'); const tests = require('./tests'); @@ -28,7 +28,7 @@ const { Text, TouchableHighlight, View, -} = React; +} = require('react-native'); class ReactTests extends React.Component { render() {