analuizaff
4 years ago
7 changed files with 105 additions and 93 deletions
-
9src/App.js
-
9src/app/navigation/AppNavigator.js
-
18src/app/navigation/RainSharingDataNavigator.js
-
19src/app/navigation/SharingDataNavigator.js
-
67src/app/navigation/SharingDataOptionsNavigator.js
-
4src/app/screens/PluviometerSharingDataScreen.js
-
68src/app/screens/SharingDataScreen.js
@ -1,18 +0,0 @@ |
|||
import { NavigationContainer } from '@react-navigation/native'; |
|||
import React, { Component } from 'react'; |
|||
import { Platform, StyleSheet, Text, View, YellowBox } from 'react-native'; |
|||
|
|||
import { createStackNavigator } from "@react-navigation/stack"; |
|||
import RainSharingDataScreen from '../screens/RainSharingDataScreen'; |
|||
import SharingDataScreen from '../screens/SharingDataScreen'; |
|||
|
|||
const Stack = createStackNavigator(); |
|||
|
|||
function RainSharingDataNavigator() { |
|||
return ( |
|||
<Stack.Navigator> |
|||
<Stack.Screen name="RainSharingData" component={RainSharingDataScreen} /> |
|||
</Stack.Navigator> |
|||
); |
|||
} |
|||
export default RainSharingDataNavigator; |
@ -0,0 +1,19 @@ |
|||
import React from "react"; |
|||
import { createStackNavigator } from "@react-navigation/stack"; |
|||
import SharingDataScreen from "../screens/SharingDataScreen"; |
|||
|
|||
const Stack = createStackNavigator(); |
|||
|
|||
const SharingDataNavigator = () => ( |
|||
<Stack.Navigator> |
|||
<Stack.Screen name="Enviar uma informação" component={SharingDataScreen} |
|||
options={{ |
|||
title: "Enviar uma informação", |
|||
headerStyle: { |
|||
backgroundColor: "lightgray", |
|||
}, |
|||
}} /> |
|||
</Stack.Navigator> |
|||
); |
|||
|
|||
export default SharingDataNavigator; |
@ -0,0 +1,67 @@ |
|||
import React from 'react'; |
|||
|
|||
import { createStackNavigator } from "@react-navigation/stack"; |
|||
import AppNavigator from './AppNavigator'; |
|||
|
|||
import RainSharingDataScreen from '../screens/RainSharingDataScreen'; |
|||
import RiverFloodSharingDataScreen from '../screens/RiverFloodSharingDataScreen'; |
|||
import SharingFloodZonesScreen from '../screens/SharingFloodZonesScreen'; |
|||
import PluviometerSharingDataScreen from '../screens/PluviometerSharingDataScreen'; |
|||
|
|||
|
|||
const Stack = createStackNavigator(); |
|||
|
|||
function SharingDataOptionsNavigator() { |
|||
return ( |
|||
<Stack.Navigator initialRouteName="SharingData"> |
|||
<Stack.Screen |
|||
name="nãoqueromais" |
|||
component={AppNavigator} |
|||
options={{ |
|||
headerShown: false |
|||
}} |
|||
/> |
|||
<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> |
|||
); |
|||
} |
|||
export default SharingDataOptionsNavigator; |
Write
Preview
Loading…
Cancel
Save
Reference in new issue