|
|
@ -1,6 +1,5 @@ |
|
|
|
import React, { useState, useContext, useEffect } from "react"; |
|
|
|
import { StyleSheet, Text, View, ScrollView, PixelRatio, SafeAreaView, KeyboardAvoidingView, Platform } from "react-native"; |
|
|
|
import * as Yup from "yup"; |
|
|
|
import { StyleSheet, Text, View, ScrollView } from "react-native"; |
|
|
|
import { |
|
|
|
Form, |
|
|
|
SubmitButton, |
|
|
@ -60,6 +59,7 @@ function PluviometerRegisterScreen(props) { |
|
|
|
<View style={{ flex: 0.10 }}> |
|
|
|
<Text style={styles.title}>Cadastro do Pluviômetro</Text> |
|
|
|
</View> |
|
|
|
{/* Escola: */} |
|
|
|
<View style={{ flex: 0.30 }}> |
|
|
|
<Text style={styles.label}>Escola: </Text> |
|
|
|
<SchoolPicker |
|
|
@ -69,15 +69,16 @@ function PluviometerRegisterScreen(props) { |
|
|
|
flex: 0.60, flexDirection: "column", |
|
|
|
justifyContent: "space-between" |
|
|
|
}}> |
|
|
|
<ScrollView> |
|
|
|
<ScrollView contentContainerStyle={{ flexGrow: 1,flexDirection: "column", |
|
|
|
justifyContent: "space-between" }}> |
|
|
|
|
|
|
|
{/*Local do evento:*/} |
|
|
|
{/*Local do pluvioômetro:*/} |
|
|
|
<View style={{ flex: 1 }}> |
|
|
|
<Text style={styles.label}>Endereço do pluviômetro: </Text> |
|
|
|
<FormLocationPicker subtitle="Defina o endereço do pluviômetro" /> |
|
|
|
</View> |
|
|
|
|
|
|
|
{/*Data da coleta:*/} |
|
|
|
{/*Data de cadastro:*/} |
|
|
|
<View style={{ flex: 1 }}> |
|
|
|
<Text style={{ |
|
|
|
fontSize: dimensions.text.secondary, |
|
|
|