Browse Source

updating minimum value as 0 to pluviometer

master
analuizaff 4 years ago
parent
commit
4ec26b7795
  1. 2
      src/app/screens/PluviometerSharingDataScreen.js

2
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."),
});

Loading…
Cancel
Save