Browse Source

adjusting the pluviometer regiter screen

master
analuizaff 4 years ago
parent
commit
5b929e51b3
  1. 11
      src/app/screens/PluviometerRegisterScreen.js

11
src/app/screens/PluviometerRegisterScreen.js

@ -1,6 +1,5 @@
import React, { useState, useContext, useEffect } from "react"; 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 { import {
Form, Form,
SubmitButton, SubmitButton,
@ -60,6 +59,7 @@ 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: */}
<View style={{ flex: 0.30 }}> <View style={{ flex: 0.30 }}>
<Text style={styles.label}>Escola: </Text> <Text style={styles.label}>Escola: </Text>
<SchoolPicker <SchoolPicker
@ -69,15 +69,16 @@ function PluviometerRegisterScreen(props) {
flex: 0.60, flexDirection: "column", flex: 0.60, flexDirection: "column",
justifyContent: "space-between" justifyContent: "space-between"
}}> }}>
<ScrollView>
<ScrollView contentContainerStyle={{ flexGrow: 1,flexDirection: "column",
justifyContent: "space-between" }}>
{/*Local do evento:*/}
{/*Local do pluvioômetro:*/}
<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>
{/*Data da coleta:*/}
{/*Data de cadastro:*/}
<View style={{ flex: 1 }}> <View style={{ flex: 1 }}>
<Text style={{ <Text style={{
fontSize: dimensions.text.secondary, fontSize: dimensions.text.secondary,

Loading…
Cancel
Save