|
@ -13,16 +13,6 @@ import RiverFloodSharingDataScreen from "./RiverFloodSharingDataScreen"; |
|
|
function SharingDataScreen({ navigation }) { |
|
|
function SharingDataScreen({ navigation }) { |
|
|
return ( |
|
|
return ( |
|
|
<View style={styles.container}> |
|
|
<View style={styles.container}> |
|
|
<Text |
|
|
|
|
|
style={{ |
|
|
|
|
|
fontSize: 25, |
|
|
|
|
|
textAlign: "center", |
|
|
|
|
|
backgroundColor: "lightgray", |
|
|
|
|
|
marginTop: 10, |
|
|
|
|
|
}} |
|
|
|
|
|
> |
|
|
|
|
|
Enviar uma informação |
|
|
|
|
|
</Text> |
|
|
|
|
|
<View style={{ flexDirection: "row", justifyContent: "space-around" }}> |
|
|
<View style={{ flexDirection: "row", justifyContent: "space-around" }}> |
|
|
<TouchableOpacity |
|
|
<TouchableOpacity |
|
|
style={{ alignItems: "center" }} |
|
|
style={{ alignItems: "center" }} |
|
@ -48,7 +38,10 @@ function SharingDataScreen({ navigation }) { |
|
|
</View> |
|
|
</View> |
|
|
|
|
|
|
|
|
<View style={{ flexDirection: "row", justifyContent: "space-around" }}> |
|
|
<View style={{ flexDirection: "row", justifyContent: "space-around" }}> |
|
|
<TouchableOpacity style={{ alignItems: "center" }} onPress={() => navigation.navigate('PluviometerSharingData')}> |
|
|
|
|
|
|
|
|
<TouchableOpacity |
|
|
|
|
|
style={{ alignItems: "center" }} |
|
|
|
|
|
onPress={() => navigation.navigate("PluviometerSharingData")} |
|
|
|
|
|
> |
|
|
<Image |
|
|
<Image |
|
|
style={styles.floodingLogo} |
|
|
style={styles.floodingLogo} |
|
|
source={require("../assets/diario_pluviometrico.png")} |
|
|
source={require("../assets/diario_pluviometrico.png")} |
|
@ -56,7 +49,10 @@ function SharingDataScreen({ navigation }) { |
|
|
<Text style={styles.text}>Diário do{"\n"}pluviômetro</Text> |
|
|
<Text style={styles.text}>Diário do{"\n"}pluviômetro</Text> |
|
|
</TouchableOpacity> |
|
|
</TouchableOpacity> |
|
|
|
|
|
|
|
|
<TouchableOpacity style={{ alignItems: "center" }} onPress={() => navigation.navigate('RiverFloodData')}> |
|
|
|
|
|
|
|
|
<TouchableOpacity |
|
|
|
|
|
style={{ alignItems: "center" }} |
|
|
|
|
|
onPress={() => navigation.navigate("RiverFloodData")} |
|
|
|
|
|
> |
|
|
<Image |
|
|
<Image |
|
|
style={styles.floodingLogo} |
|
|
style={styles.floodingLogo} |
|
|
source={require("../assets/nivel_rio.png")} |
|
|
source={require("../assets/nivel_rio.png")} |
|
@ -74,7 +70,6 @@ const styles = StyleSheet.create({ |
|
|
textAlign: "center", |
|
|
textAlign: "center", |
|
|
marginTop: 10, |
|
|
marginTop: 10, |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
rainLogo: { |
|
|
rainLogo: { |
|
|
width: 110, |
|
|
width: 110, |
|
|
height: 100, |
|
|
height: 100, |
|
@ -92,12 +87,58 @@ const Stack = createStackNavigator(); |
|
|
function RainSharingDataNavigator() { |
|
|
function RainSharingDataNavigator() { |
|
|
return ( |
|
|
return ( |
|
|
<Stack.Navigator initialRouteName="SharingData"> |
|
|
<Stack.Navigator initialRouteName="SharingData"> |
|
|
<Stack.Screen name="SharingData" component={SharingDataScreen} /> |
|
|
|
|
|
|
|
|
<Stack.Screen |
|
|
|
|
|
name="SharingData" |
|
|
|
|
|
component={SharingDataScreen} |
|
|
|
|
|
options={{ |
|
|
|
|
|
title: "Enviar uma informação", |
|
|
|
|
|
headerStyle: { |
|
|
|
|
|
backgroundColor: "lightgray", |
|
|
|
|
|
}, |
|
|
|
|
|
headerTitleStyle: { alignSelf: "center" }, |
|
|
|
|
|
}} |
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
<Stack.Screen name="RainSharingData" component={RainSharingDataScreen} /> |
|
|
|
|
|
<Stack.Screen name="FloodSharingData" component={SharingFloodZonesScreen}/> |
|
|
|
|
|
<Stack.Screen name="PluviometerSharingData" component={PluviometerSharingDataScreen} /> |
|
|
|
|
|
<Stack.Screen name="RiverFloodData" component={RiverFloodSharingDataScreen} /> |
|
|
|
|
|
|
|
|
<Stack.Screen |
|
|
|
|
|
name="RainSharingData" |
|
|
|
|
|
component={RainSharingDataScreen} |
|
|
|
|
|
options={{ |
|
|
|
|
|
title: "Enviar uma informação", |
|
|
|
|
|
headerStyle: { |
|
|
|
|
|
backgroundColor: "lightgray", |
|
|
|
|
|
}, |
|
|
|
|
|
}} |
|
|
|
|
|
/> |
|
|
|
|
|
<Stack.Screen |
|
|
|
|
|
name="FloodSharingData" |
|
|
|
|
|
component={SharingFloodZonesScreen} |
|
|
|
|
|
options={{ |
|
|
|
|
|
title: "Enviar uma informação", |
|
|
|
|
|
headerStyle: { |
|
|
|
|
|
backgroundColor: "lightgray", |
|
|
|
|
|
}, |
|
|
|
|
|
}} |
|
|
|
|
|
/> |
|
|
|
|
|
<Stack.Screen |
|
|
|
|
|
name="PluviometerSharingData" |
|
|
|
|
|
component={PluviometerSharingDataScreen} |
|
|
|
|
|
options={{ |
|
|
|
|
|
title: "Enviar uma informação", |
|
|
|
|
|
headerStyle: { |
|
|
|
|
|
backgroundColor: "lightgray", |
|
|
|
|
|
}, |
|
|
|
|
|
}} |
|
|
|
|
|
/> |
|
|
|
|
|
<Stack.Screen |
|
|
|
|
|
name="RiverFloodData" |
|
|
|
|
|
component={RiverFloodSharingDataScreen} |
|
|
|
|
|
options={{ |
|
|
|
|
|
title: "Enviar uma informação", |
|
|
|
|
|
headerStyle: { |
|
|
|
|
|
backgroundColor: "lightgray", |
|
|
|
|
|
}, |
|
|
|
|
|
}} |
|
|
|
|
|
/> |
|
|
</Stack.Navigator> |
|
|
</Stack.Navigator> |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|