|
@ -40,7 +40,7 @@ function RiverFloodSharingDataScreen(props) { |
|
|
context.defaultLocation(); |
|
|
context.defaultLocation(); |
|
|
}, []); |
|
|
}, []); |
|
|
const location = context.eventCoordinates; |
|
|
const location = context.eventCoordinates; |
|
|
const address = context.eventLocation; |
|
|
|
|
|
|
|
|
const address = context.eventLocation; |
|
|
|
|
|
|
|
|
const [error, setError] = useState(false); |
|
|
const [error, setError] = useState(false); |
|
|
|
|
|
|
|
@ -131,7 +131,7 @@ function RiverFloodSharingDataScreen(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:*/} |
|
@ -157,14 +157,16 @@ function RiverFloodSharingDataScreen(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> |
|
@ -192,6 +194,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 RiverFloodSharingDataScreen; |
|
|
export default RiverFloodSharingDataScreen; |