|
@ -38,7 +38,7 @@ function SharingFloodZonesScreen(props) { |
|
|
const [time, setTime] = useState(moment()); |
|
|
const [time, setTime] = useState(moment()); |
|
|
|
|
|
|
|
|
const context = useContext(EventLocationContext); |
|
|
const context = useContext(EventLocationContext); |
|
|
const address = context.eventLocation; |
|
|
|
|
|
|
|
|
const address = context.eventLocation; |
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
useEffect(() => { |
|
|
context.defaultLocation(); |
|
|
context.defaultLocation(); |
|
@ -117,7 +117,7 @@ function SharingFloodZonesScreen(props) { |
|
|
flex: 1, |
|
|
flex: 1, |
|
|
flexDirection: "column", |
|
|
flexDirection: "column", |
|
|
justifyContent: "space-between", |
|
|
justifyContent: "space-between", |
|
|
alignContent:"flex-start", |
|
|
|
|
|
|
|
|
alignContent: "flex-start", |
|
|
}} |
|
|
}} |
|
|
> |
|
|
> |
|
|
{/*Data da coleta:*/} |
|
|
{/*Data da coleta:*/} |
|
@ -143,14 +143,16 @@ function SharingFloodZonesScreen(props) { |
|
|
</TouchableOpacity> |
|
|
</TouchableOpacity> |
|
|
</View> |
|
|
</View> |
|
|
</View> |
|
|
</View> |
|
|
|
|
|
|
|
|
<FormField |
|
|
|
|
|
maxLength={255} |
|
|
|
|
|
multiline |
|
|
|
|
|
name="description" |
|
|
|
|
|
numberOfLines={3} |
|
|
|
|
|
placeholder="Descrição" |
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
<View style={{ flex: 1 }}> |
|
|
|
|
|
<Text style={styles.labelStyle}>Comentário:</Text> |
|
|
|
|
|
<FormField |
|
|
|
|
|
maxLength={255} |
|
|
|
|
|
multiline |
|
|
|
|
|
name="description" |
|
|
|
|
|
numberOfLines={3} |
|
|
|
|
|
placeholder="Escreva um comentário (Opcional)..." |
|
|
|
|
|
/> |
|
|
|
|
|
</View> |
|
|
<SubmitButton title="Enviar" backgroundColor={colors.primary} /> |
|
|
<SubmitButton title="Enviar" backgroundColor={colors.primary} /> |
|
|
</Form> |
|
|
</Form> |
|
|
</KeyboardAwareScrollView> |
|
|
</KeyboardAwareScrollView> |
|
@ -191,6 +193,12 @@ const styles = StyleSheet.create({ |
|
|
fontSize: 18, |
|
|
fontSize: 18, |
|
|
color: colors.danger, |
|
|
color: colors.danger, |
|
|
}, |
|
|
}, |
|
|
|
|
|
labelStyle: { |
|
|
|
|
|
fontSize: dimensions.text.secondary, |
|
|
|
|
|
fontWeight: "bold", |
|
|
|
|
|
textAlign: "left", |
|
|
|
|
|
color: colors.lightBlue, |
|
|
|
|
|
}, |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
export default SharingFloodZonesScreen; |
|
|
export default SharingFloodZonesScreen; |