Change Demo => ReactTests

This commit is contained in:
Scott Kyle 2016-02-10 17:03:16 -08:00
parent 7afdbba2ed
commit 881d4a04c3
2 changed files with 5 additions and 8 deletions

View File

@ -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);
}

View File

@ -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 (
<View style={styles.container}>
<Text style={styles.button} onPress={runTests}>
@ -105,7 +102,7 @@ var Demo = React.createClass({
</View>
);
}
});
}
var styles = StyleSheet.create({
container: {
@ -126,4 +123,4 @@ var styles = StyleSheet.create({
},
});
AppRegistry.registerComponent('Demo', () => Demo);
AppRegistry.registerComponent('ReactTests', () => ReactTests);