Без опису

AddTakenCourses.js 3.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. import React, { Component } from "react";
  2. import { Text, View, StyleSheet, Button, ScrollView, Picker, TextInput } from "react-native";
  3. export default class SettingScreen extends Component {
  4. state = {
  5. faculty: "naturales"
  6. }
  7. render() {
  8. return(
  9. <View style={styles.container}>
  10. <View style={{alignItems: "center", backgroundColor: 'red', marginTop: 30, marginBottom: 150}}>
  11. <Text style= {{fontSize: 20, fontWeight: "bold"}}> Add Taken </Text>
  12. <Text style= {{fontSize: 20, fontWeight: "bold"}}>Course{/*{this.props.navigation.getParam("username")} */}</Text>
  13. </View>
  14. <View style={{alignItems: "flex-start", backgroundColor: 'white', flex:0}}>
  15. <Button
  16. title="<Back"
  17. onPress= {() => this.props.navigation.navigate("Profile")}
  18. />
  19. </View>
  20. <View style={{alignItems: "flex-start",backgroundColor: 'white', flex:0}}>
  21. <Text style={{ fontSize: 20}}> Course: </Text>
  22. <TextInput style= {{borderColor: "black", borderWidth: 2, width: 100}}>
  23. </TextInput>
  24. <Text style={{ fontSize: 20}}> Section: </Text>
  25. <TextInput style= {{borderColor: "black", borderWidth: 2, width: 100}}>
  26. </TextInput>
  27. <Text style={{ fontSize: 20}}> Semester#: </Text>
  28. <TextInput style= {{borderColor: "black", borderWidth: 2, width: 100}}>
  29. </TextInput>
  30. <Text style={{ fontSize: 20}}> Professor: </Text>
  31. <TextInput style= {{borderColor: "black", borderWidth: 2, width: 250}}>
  32. </TextInput>
  33. </View>
  34. <View style={{alignItems: "flex-end", backgroundColor: 'white', marginTop: 50, marginBottom: 250}}>
  35. <Text style={{ fontSize: 20, fontWeight: "bold" , height:30 }}> Grade: </Text>
  36. <Picker
  37. selectedValue={this.state.faculty}
  38. style={{ height: 0, width: 40}}
  39. onValueChange={(itemValue, itemIndex) =>
  40. this.setState({ faculty: itemValue })}>
  41. <Picker.Item label="A" value="001" />
  42. <Picker.Item label="B" value="002" />
  43. <Picker.Item label="C" value="003" />
  44. <Picker.Item label="D" value="004" />
  45. <Picker.Item label="F" value="005" />
  46. <Picker.Item label="PS" value="006" />
  47. <Picker.Item label="NP" value="007" />
  48. </Picker>
  49. </View>
  50. <Button
  51. title="Submit Taken Course"
  52. onPress={null}
  53. />
  54. </View>
  55. );
  56. }
  57. }
  58. const styles = StyleSheet.create({
  59. container: {
  60. flex: 1,
  61. justifyContent: "center"
  62. }
  63. });