|
|
@ -5,7 +5,7 @@ import * as Yup from "yup"; |
|
|
|
import { Form, SubmitButton, FormField } from "../components/forms"; |
|
|
|
import Screen from "../components/Screen"; |
|
|
|
import FormImagePicker from "../components/forms/FormImagePicker"; |
|
|
|
import { Text, TouchableOpacity } from "react-native"; |
|
|
|
import { Text } from "react-native"; |
|
|
|
import colors from "../config/colors"; |
|
|
|
import { TouchableNativeFeedback } from "react-native-gesture-handler"; |
|
|
|
import { insertRainData } from "../database/databaseLoader"; |
|
|
@ -13,8 +13,6 @@ import { showMessage } from "react-native-flash-message"; |
|
|
|
import { scaleDimsFromWidth, dimensions } from "../config/dimensions"; |
|
|
|
import assets from "../config/assets"; |
|
|
|
import moment from "moment"; |
|
|
|
import FormDatePicker from "../components/forms/FormDatePicker"; |
|
|
|
import FormLocationPicker from "../components/forms/FormLocationPicker"; |
|
|
|
import { EventLocationContext } from "../context/EventLocationContext"; |
|
|
|
import { useIsFocused } from "@react-navigation/native"; |
|
|
|
import PickEventDateLocation from "../components/PickEventDateLocation"; |
|
|
@ -24,10 +22,8 @@ const validationSchema = Yup.object().shape({ |
|
|
|
description: Yup.string().label("Description"), |
|
|
|
}); |
|
|
|
|
|
|
|
const borderWidth = 4; |
|
|
|
|
|
|
|
function RainSharingDataScreen(props) { |
|
|
|
const isFocused = useIsFocused(); |
|
|
|
const [rain, setRain] = useState(-1); |
|
|
|
const [error, setError] = useState(false); |
|
|
|
|
|
|
@ -151,18 +147,6 @@ const styles = StyleSheet.create({ |
|
|
|
container: { |
|
|
|
backgroundColor: colors.white, |
|
|
|
}, |
|
|
|
img_block: { |
|
|
|
// flex: 1,
|
|
|
|
// borderRadius: 5,
|
|
|
|
// borderStyle: "dotted",
|
|
|
|
// borderColor: colors.white,
|
|
|
|
// borderWidth: borderWidth,
|
|
|
|
// alignItems: "center",
|
|
|
|
}, |
|
|
|
imgs_row: { |
|
|
|
flexDirection: "row", |
|
|
|
justifyContent: "space-between", |
|
|
|
}, |
|
|
|
error_txt: { |
|
|
|
fontSize: dimensions.text.default, |
|
|
|
color: colors.danger, |
|
|
|