"use strict";
import React, {
AppRegistry,
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
View,
} from "react-native";
const TESTS = [
require("./testcases/FirstUpdateTest"),
require("./testcases/NewUpdateTest"),
require("./testcases/NoRemotePackageTest"),
require("./testcases/RemotePackageAppVersionNewerTest"),
require("./testcases/SamePackageTest"),
require("./testcases/SwitchDeploymentKeyTest")
];
TESTS.forEach(
(test) => AppRegistry.registerComponent(test.displayName, () => test)
);
let CheckForUpdateTestApp = React.createClass({
getInitialState() {
return {
test: null,
};
},
render() {
if (this.state.test) {
return (
);
}
return (
CheckForUpdate Tests
{TESTS.map((test) => [
this.setState({test})}
style={styles.row}>
{test.displayName}
{test.description}
,
])}
);
}
});
const styles = StyleSheet.create({
container: {
backgroundColor: "white",
marginTop: 40,
margin: 15,
},
row: {
padding: 10,
},
testName: {
fontWeight: "500",
},
testDescription: {
fontSize: 10
},
separator: {
height: 1,
backgroundColor: "#bbbbbb",
}
});
AppRegistry.registerComponent("CheckForUpdateTestApp", () => CheckForUpdateTestApp);