|
@ -4,12 +4,8 @@ import * as Yup from "yup"; |
|
|
|
|
|
|
|
|
import { Form, SubmitButton, FormField } from "../components/forms"; |
|
|
import { Form, SubmitButton, FormField } from "../components/forms"; |
|
|
import Screen from "../components/Screen"; |
|
|
import Screen from "../components/Screen"; |
|
|
import FormImagePicker from "../components/forms/FormImagePicker"; |
|
|
|
|
|
import { Text } from "react-native"; |
|
|
import { Text } from "react-native"; |
|
|
import colors from "../config/colors"; |
|
|
import colors from "../config/colors"; |
|
|
import { TouchableNativeFeedback } from "react-native-gesture-handler"; |
|
|
|
|
|
import { insertRainData } from "../database/databaseLoader"; |
|
|
|
|
|
import { showMessage } from "react-native-flash-message"; |
|
|
|
|
|
import { scaleDimsFromWidth, dimensions, screen_height } from "../config/dimensions"; |
|
|
import { scaleDimsFromWidth, dimensions, screen_height } from "../config/dimensions"; |
|
|
import assets from "../config/assets"; |
|
|
import assets from "../config/assets"; |
|
|
import moment from "moment"; |
|
|
import moment from "moment"; |
|
@ -33,8 +29,6 @@ function RainSharingDataScreen(props) { |
|
|
const [rainSituation, setRainSituation] = useState(null); |
|
|
const [rainSituation, setRainSituation] = useState(null); |
|
|
const [error, setError] = useState(false); |
|
|
const [error, setError] = useState(false); |
|
|
|
|
|
|
|
|
const dims = scaleDimsFromWidth(85, 85, 27); |
|
|
|
|
|
|
|
|
|
|
|
const [date, setDate] = useState(moment()); |
|
|
const [date, setDate] = useState(moment()); |
|
|
const [time, setTime] = useState(moment()); |
|
|
const [time, setTime] = useState(moment()); |
|
|
const context = useContext(EventLocationContext); |
|
|
const context = useContext(EventLocationContext); |
|
@ -76,7 +70,7 @@ function RainSharingDataScreen(props) { |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<Screen style={styles.container}> |
|
|
|
|
|
|
|
|
<Screen> |
|
|
<OnSubmitAwaitModal |
|
|
<OnSubmitAwaitModal |
|
|
show={showAwaitModal} |
|
|
show={showAwaitModal} |
|
|
/> |
|
|
/> |
|
@ -205,9 +199,6 @@ function RainSharingDataScreen(props) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const styles = StyleSheet.create({ |
|
|
const styles = StyleSheet.create({ |
|
|
container: { |
|
|
|
|
|
backgroundColor: colors.white, |
|
|
|
|
|
}, |
|
|
|
|
|
error_txt: { |
|
|
error_txt: { |
|
|
paddingHorizontal: 16, |
|
|
paddingHorizontal: 16, |
|
|
marginTop: 12, |
|
|
marginTop: 12, |
|
|