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