mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-10 22:36:01 +00:00
Change Demo => ReactTests
This commit is contained in:
parent
7afdbba2ed
commit
881d4a04c3
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user