|
|
@ -4,12 +4,8 @@ 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 } from "react-native"; |
|
|
|
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 assets from "../config/assets"; |
|
|
|
import moment from "moment"; |
|
|
@ -33,8 +29,6 @@ function RainSharingDataScreen(props) { |
|
|
|
const [rainSituation, setRainSituation] = useState(null); |
|
|
|
const [error, setError] = useState(false); |
|
|
|
|
|
|
|
const dims = scaleDimsFromWidth(85, 85, 27); |
|
|
|
|
|
|
|
const [date, setDate] = useState(moment()); |
|
|
|
const [time, setTime] = useState(moment()); |
|
|
|
const context = useContext(EventLocationContext); |
|
|
@ -76,7 +70,7 @@ function RainSharingDataScreen(props) { |
|
|
|
}; |
|
|
|
|
|
|
|
return ( |
|
|
|
<Screen style={styles.container}> |
|
|
|
<Screen> |
|
|
|
<OnSubmitAwaitModal |
|
|
|
show={showAwaitModal} |
|
|
|
/> |
|
|
@ -205,9 +199,6 @@ function RainSharingDataScreen(props) { |
|
|
|
} |
|
|
|
|
|
|
|
const styles = StyleSheet.create({ |
|
|
|
container: { |
|
|
|
backgroundColor: colors.white, |
|
|
|
}, |
|
|
|
error_txt: { |
|
|
|
paddingHorizontal: 16, |
|
|
|
marginTop: 12, |
|
|
|