forked from cemaden-educacao/WPD-MobileApp
analuizaff
4 years ago
7 changed files with 147 additions and 68 deletions
-
32src/app/components/forms/FormDatePicker.js
-
56src/app/components/forms/FormLocationPicker.js
-
8src/app/navigation/SharingDataOptionsNavigator.js
-
33src/app/screens/PluviometerSharingDataScreen.js
-
28src/app/screens/RainSharingDataScreen.js
-
28src/app/screens/RiverFloodSharingDataScreen.js
-
30src/app/screens/SharingFloodZonesScreen.js
@ -0,0 +1,56 @@ |
|||||
|
import React from "react"; |
||||
|
import { |
||||
|
StyleSheet, |
||||
|
Text, |
||||
|
View, |
||||
|
} from "react-native"; |
||||
|
|
||||
|
import { MaterialIcons } from '@expo/vector-icons'; |
||||
|
import colors from "../../config/colors"; |
||||
|
import { Colors } from "react-native/Libraries/NewAppScreen"; |
||||
|
import { TouchableOpacity } from "react-native-gesture-handler"; |
||||
|
|
||||
|
const FormLocationPicker = (props) => { |
||||
|
return ( |
||||
|
<TouchableOpacity> |
||||
|
<View> |
||||
|
<View style={styles.location}> |
||||
|
<View style={styles.mapIcon}> |
||||
|
<MaterialIcons name="location-on" size={28} color="white" alignItems="center" alignContent="center" /> |
||||
|
</View> |
||||
|
<View style={styles.adressText}> |
||||
|
<Text>{""} Endereço {"\n "}...</Text> |
||||
|
</View> |
||||
|
</View> |
||||
|
<Text style={{ color: colors.primary }}>Defina o local no mapa</Text> |
||||
|
</View> |
||||
|
</TouchableOpacity> |
||||
|
); |
||||
|
|
||||
|
} |
||||
|
|
||||
|
const styles = StyleSheet.create({ |
||||
|
location: { |
||||
|
flex: 1, |
||||
|
flexDirection: "row", |
||||
|
alignItems: "center", |
||||
|
justifyContent: "space-between", |
||||
|
}, |
||||
|
adressText: { |
||||
|
flex: 0.78, |
||||
|
backgroundColor: colors.white, |
||||
|
borderRadius: 25, |
||||
|
marginVertical: 10, |
||||
|
|
||||
|
}, |
||||
|
mapIcon: { |
||||
|
backgroundColor: colors.cerulean, |
||||
|
padding: 8, |
||||
|
width: 20, |
||||
|
alignItems: "center", |
||||
|
borderRadius: 5, |
||||
|
flex: 0.20, |
||||
|
} |
||||
|
}); |
||||
|
|
||||
|
export default FormLocationPicker; |
Write
Preview
Loading…
Cancel
Save
Reference in new issue