|
@ -4,17 +4,9 @@ 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"; |
|
|
import { EventLocationContext } from "../context/EventLocationContext"; |
|
|
import { EventLocationContext } from "../context/EventLocationContext"; |
|
@ -39,8 +31,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); |
|
@ -91,8 +81,10 @@ function RainSharingDataScreen(props) { |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<Screen style={styles.container}> |
|
|
|
|
|
<OnSubmitAwaitModal show={showAwaitModal} /> |
|
|
|
|
|
|
|
|
<Screen> |
|
|
|
|
|
<OnSubmitAwaitModal |
|
|
|
|
|
show={showAwaitModal} |
|
|
|
|
|
/> |
|
|
<OnSubmitMessageModal |
|
|
<OnSubmitMessageModal |
|
|
show={showMessageModal} |
|
|
show={showMessageModal} |
|
|
setShow={setShowMessageModal} |
|
|
setShow={setShowMessageModal} |
|
@ -220,9 +212,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, |
|
|