From 881d4a04c330baaae81bc87fc30ea5898ad060ff Mon Sep 17 00:00:00 2001 From: Scott Kyle Date: Wed, 10 Feb 2016 17:03:16 -0800 Subject: [PATCH] Change Demo => ReactTests --- .../android/app/src/main/java/MainActivity.java | 2 +- tests/react-test-app/index.android.js | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/tests/react-test-app/android/app/src/main/java/MainActivity.java b/tests/react-test-app/android/app/src/main/java/MainActivity.java index 4f408846..f86b9b53 100644 --- a/tests/react-test-app/android/app/src/main/java/MainActivity.java +++ b/tests/react-test-app/android/app/src/main/java/MainActivity.java @@ -43,7 +43,7 @@ public class MainActivity extends Activity implements DefaultHardwareBackBtnHand .setInitialLifecycleState(LifecycleState.RESUMED) .build(); - mReactRootView.startReactApplication(mReactInstanceManager, "Demo", null); + mReactRootView.startReactApplication(mReactInstanceManager, "ReactTests", null); setContentView(mReactRootView); } diff --git a/tests/react-test-app/index.android.js b/tests/react-test-app/index.android.js index 9eec4e41..c86c9385 100644 --- a/tests/react-test-app/index.android.js +++ b/tests/react-test-app/index.android.js @@ -21,11 +21,8 @@ var RNFS = require('react-native-fs'); function runTests() { var rootXml = builder.create('testsuites'); - - let testNames = RealmTests.getTestNames(); - for (let suiteName in testNames) { var itemTestsuite = rootXml.ele('testsuite'); let nbrTests = 0; @@ -89,8 +86,8 @@ function runTests() { } -var Demo = React.createClass({ - render: function() { +class ReactTests extends React.Component { + render() { return ( @@ -105,7 +102,7 @@ var Demo = React.createClass({ ); } -}); +} var styles = StyleSheet.create({ container: { @@ -126,4 +123,4 @@ var styles = StyleSheet.create({ }, }); -AppRegistry.registerComponent('Demo', () => Demo); +AppRegistry.registerComponent('ReactTests', () => ReactTests);