|
@ -13,6 +13,7 @@ import moment from "moment"; |
|
|
import FormLocationPicker from "../components/forms/FormLocationPicker"; |
|
|
import FormLocationPicker from "../components/forms/FormLocationPicker"; |
|
|
import { EventLocationContext } from "../context/EventLocationContext"; |
|
|
import { EventLocationContext } from "../context/EventLocationContext"; |
|
|
import SchoolPicker from "../components/SchoolPicker"; |
|
|
import SchoolPicker from "../components/SchoolPicker"; |
|
|
|
|
|
import { TouchableOpacity } from "react-native-gesture-handler"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -59,24 +60,34 @@ function PluviometerRegisterScreen(props) { |
|
|
<View style={{ flex: 0.10 }}> |
|
|
<View style={{ flex: 0.10 }}> |
|
|
<Text style={styles.title}>Cadastro do Pluviômetro</Text> |
|
|
<Text style={styles.title}>Cadastro do Pluviômetro</Text> |
|
|
</View> |
|
|
</View> |
|
|
|
|
|
|
|
|
{/* Escola: */} |
|
|
{/* Escola: */} |
|
|
<View style={{ flex: 0.30 }}> |
|
|
|
|
|
|
|
|
<View style={{ flex: 0.25, marginTop: 5}}> |
|
|
<Text style={styles.label}>Escola: </Text> |
|
|
<Text style={styles.label}>Escola: </Text> |
|
|
<SchoolPicker |
|
|
<SchoolPicker |
|
|
itemSelected={(value) => setSchool(value)} /> |
|
|
itemSelected={(value) => setSchool(value)} /> |
|
|
</View> |
|
|
</View> |
|
|
|
|
|
|
|
|
|
|
|
<View style={{ |
|
|
|
|
|
flex: 0.60, flexDirection: "column" |
|
|
|
|
|
}}> |
|
|
|
|
|
<ScrollView contentContainerStyle={{ |
|
|
|
|
|
flexGrow: 1 |
|
|
|
|
|
}}> |
|
|
<View style={{ |
|
|
<View style={{ |
|
|
flex: 0.60, flexDirection: "column", |
|
|
|
|
|
|
|
|
flex: 1, |
|
|
|
|
|
flexDirection: "column", |
|
|
justifyContent: "space-between" |
|
|
justifyContent: "space-between" |
|
|
}}> |
|
|
}}> |
|
|
<ScrollView contentContainerStyle={{ flexGrow: 1,flexDirection: "column", |
|
|
|
|
|
justifyContent: "space-between" }}> |
|
|
|
|
|
|
|
|
|
|
|
{/*Local do pluvioômetro:*/} |
|
|
{/*Local do pluvioômetro:*/} |
|
|
|
|
|
<View style={{ flex: 1 }}> |
|
|
|
|
|
<TouchableOpacity onPress={() => props.navigation.navigate("FormMap")}> |
|
|
<View style={{ flex: 1 }}> |
|
|
<View style={{ flex: 1 }}> |
|
|
<Text style={styles.label}>Endereço do pluviômetro: </Text> |
|
|
<Text style={styles.label}>Endereço do pluviômetro: </Text> |
|
|
<FormLocationPicker subtitle="Defina o endereço do pluviômetro" /> |
|
|
<FormLocationPicker subtitle="Defina o endereço do pluviômetro" /> |
|
|
</View> |
|
|
</View> |
|
|
|
|
|
</TouchableOpacity> |
|
|
|
|
|
</View> |
|
|
|
|
|
|
|
|
{/*Data de cadastro:*/} |
|
|
{/*Data de cadastro:*/} |
|
|
<View style={{ flex: 1 }}> |
|
|
<View style={{ flex: 1 }}> |
|
@ -84,7 +95,7 @@ function PluviometerRegisterScreen(props) { |
|
|
fontSize: dimensions.text.secondary, |
|
|
fontSize: dimensions.text.secondary, |
|
|
fontWeight: "bold", |
|
|
fontWeight: "bold", |
|
|
textAlign: "left", |
|
|
textAlign: "left", |
|
|
color: colors.lightBlue, marginBottom: 10 |
|
|
|
|
|
|
|
|
color: colors.lightBlue, |
|
|
}}>Data do cadastro: </Text> |
|
|
}}>Data do cadastro: </Text> |
|
|
<FormDatePicker |
|
|
<FormDatePicker |
|
|
disabled={true} |
|
|
disabled={true} |
|
@ -99,9 +110,10 @@ function PluviometerRegisterScreen(props) { |
|
|
/> |
|
|
/> |
|
|
</View> |
|
|
</View> |
|
|
|
|
|
|
|
|
<View style={{ flex: 0.10, marginTop:15 }}> |
|
|
|
|
|
|
|
|
<View style={{ flex: 0.05, marginTop: 15 }}> |
|
|
<SubmitButton title="Cadastrar" alignContent="flex-end" /> |
|
|
<SubmitButton title="Cadastrar" alignContent="flex-end" /> |
|
|
</View> |
|
|
</View> |
|
|
|
|
|
</View> |
|
|
</ScrollView> |
|
|
</ScrollView> |
|
|
</View> |
|
|
</View> |
|
|
</View> |
|
|
</View> |
|
|