diff --git a/src/app/screens/PluviometerSharingDataScreen.js b/src/app/screens/PluviometerSharingDataScreen.js index 57eb7a3..22e84b9 100644 --- a/src/app/screens/PluviometerSharingDataScreen.js +++ b/src/app/screens/PluviometerSharingDataScreen.js @@ -21,7 +21,7 @@ import moment from 'moment'; import colors from "../config/colors"; const validationSchema = Yup.object().shape({ - pluviometer: Yup.number().required().min(1).max(10000).label("pluviometer"), + pluviometer: Yup.number().required("Campo obrigatório").min(0, "O valor deve ser maior ou igual a 0.").max(10000).label("pluviometer"), data: Yup.string().min(1, "Por favor preencha a data"), images: Yup.array().min(1, "Por favor, selecione uma imagem."), });