|
|
@ -18,6 +18,7 @@ import DateTimePicker from '@react-native-community/datetimepicker'; |
|
|
|
import { FontAwesome5 } from '@expo/vector-icons'; |
|
|
|
import { showMessage } from "react-native-flash-message"; |
|
|
|
import moment from 'moment'; |
|
|
|
import colors from "../config/colors"; |
|
|
|
|
|
|
|
const validationSchema = Yup.object().shape({ |
|
|
|
pluviometer: Yup.number().required().min(1).max(10000).label("pluviometer"), |
|
|
@ -141,10 +142,10 @@ function PluviometerSharingDataScreen(props) { |
|
|
|
flexDirection: 'row', |
|
|
|
}} |
|
|
|
activeOpacity={1} |
|
|
|
visible={show}> |
|
|
|
onPress={() => setShow(false)} |
|
|
|
visible={show} |
|
|
|
onPress={() => setShow(false)}> |
|
|
|
<TouchableHighlight |
|
|
|
underlayColor={''} |
|
|
|
underlayColor={'#f8f4f4'} |
|
|
|
style={{ |
|
|
|
flex: 1, |
|
|
|
borderTopColor: 'primary', |
|
|
@ -158,20 +159,20 @@ function PluviometerSharingDataScreen(props) { |
|
|
|
overflow: 'hidden', |
|
|
|
}}> |
|
|
|
<View style={{ marginTop: 20 }}> |
|
|
|
{ renderDatePicker } |
|
|
|
{renderDatePicker()} |
|
|
|
</View> |
|
|
|
<TouchableHighlight |
|
|
|
underlayColor={'transparent'} |
|
|
|
onPress={() => onCancelPress()} |
|
|
|
onPress={() => console.log('Datepicker press')} |
|
|
|
style={(styles.btnText, styles.btnCancel)}> |
|
|
|
<Text>Cancelar</Text> |
|
|
|
</TouchableHighlight> |
|
|
|
|
|
|
|
<TouchableHighlight |
|
|
|
underlayColor={'transparent'} |
|
|
|
onPress={() => onDonePress()} |
|
|
|
onPress={() => console.log('Datepicker press')} |
|
|
|
style={(styles.btnText, styles.btnDone)}> |
|
|
|
<Text>OK</Text> |
|
|
|
<Text>Ok</Text> |
|
|
|
</TouchableHighlight> |
|
|
|
</View> |
|
|
|
</TouchableHighlight> |
|
|
@ -234,7 +235,8 @@ const styles = StyleSheet.create({ |
|
|
|
paddingHorizontal: 20, |
|
|
|
flexDirection: "row", |
|
|
|
alignItems: "center", |
|
|
|
justifyContent: "center" |
|
|
|
justifyContent: "center", |
|
|
|
color: colors.primary, |
|
|
|
}, |
|
|
|
btnCancel: { |
|
|
|
left: 0, |
|
|
|