Browse Source

adding label to comment input

master
analuizaff 4 years ago
parent
commit
e680754797
  1. 6
      src/app/screens/PluviometerSharingDataScreen.js
  2. 24
      src/app/screens/RainSharingDataScreen.js
  3. 28
      src/app/screens/RiverFloodSharingDataScreen.js
  4. 28
      src/app/screens/SharingFloodZonesScreen.js

6
src/app/screens/PluviometerSharingDataScreen.js

@ -115,13 +115,14 @@ function PluviometerSharingDataScreen(props) {
</TouchableOpacity> </TouchableOpacity>
</View> </View>
</View> </View>
<View>
<View style={{ flex: 1 }}>
<Text style={styles.labelStyle}>Comentário:</Text>
<FormField <FormField
maxLength={255} maxLength={255}
multiline multiline
name="description" name="description"
numberOfLines={3} numberOfLines={3}
placeholder="Descrição"
placeholder="Escreva um comentário (Opcional)..."
/> />
</View> </View>
<SubmitButton title="Enviar" style={{ marginBottom: 100 }} /> <SubmitButton title="Enviar" style={{ marginBottom: 100 }} />
@ -148,7 +149,6 @@ const styles = StyleSheet.create({
fontWeight: "bold", fontWeight: "bold",
textAlign: "left", textAlign: "left",
color: colors.lightBlue, color: colors.lightBlue,
marginBottom: 5,
}, },
}); });

24
src/app/screens/RainSharingDataScreen.js

@ -161,14 +161,16 @@ function RainSharingDataScreen(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>
</ScrollView> </ScrollView>
@ -197,6 +199,12 @@ const styles = StyleSheet.create({
fontSize: dimensions.text.default, fontSize: dimensions.text.default,
color: colors.danger, color: colors.danger,
}, },
labelStyle: {
fontSize: dimensions.text.secondary,
fontWeight: "bold",
textAlign: "left",
color: colors.lightBlue,
},
}); });
export default RainSharingDataScreen; export default RainSharingDataScreen;

28
src/app/screens/RiverFloodSharingDataScreen.js

@ -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>
@ -191,6 +193,12 @@ const styles = StyleSheet.create({
error_txt: { error_txt: {
fontSize: 18, fontSize: 18,
color: colors.danger, color: colors.danger,
},
labelStyle: {
fontSize: dimensions.text.secondary,
fontWeight: "bold",
textAlign: "left",
color: colors.lightBlue,
}, },
}); });

28
src/app/screens/SharingFloodZonesScreen.js

@ -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;
Loading…
Cancel
Save