Added app reducer, fixed package issues, begun camera screen updates

This commit is contained in:
Patrick Fic
2020-11-09 18:43:59 -08:00
parent 86744ff29a
commit ab1e04f564
22 changed files with 653 additions and 68 deletions

View File

@@ -75,11 +75,25 @@ const JobStackNavigator = ({ navigation }) => (
i18n.t("joblist.labels.detail"),
})}
/>
<JobStack.Screen name="JobCamera" component={ScreenCamera} />
<JobStack.Screen
name="JobCamera"
options={{ headerShown: false }}
component={ScreenCamera}
/>
<JobStack.Screen name="MediaCache" component={ScreenMediaCache} />
</JobStack.Navigator>
);
const CameraStackNavigator = ({ navigation }) => (
<JobStack.Navigator initialRouteName="TabCamera">
<JobStack.Screen
name="TabCamera"
options={{ headerShown: false }}
component={ScreenCamera}
/>
<JobStack.Screen name="MediaCache" component={ScreenMediaCache} />
</JobStack.Navigator>
);
const MessagingStackNavigator = ({ navigation }) => (
<MessagingStack.Navigator>
<MessagingStack.Screen
@@ -102,6 +116,8 @@ const BottomTabsNavigator = () => (
iconName = "ios-list";
} else if (route.name === "MessagingTab") {
iconName = "ios-chatboxes";
} else if (route.name === "CameraTab") {
iconName = "ios-camera";
}
return <Ionicons name={iconName} size={size} color={color} />;
},
@@ -116,6 +132,11 @@ const BottomTabsNavigator = () => (
options={{ title: i18n.t("joblist.titles.jobtab") }}
component={JobStackNavigator}
/>
<BottomTabs.Screen
name="CameraTab"
options={{ title: i18n.t("camera.titles.cameratab") }}
component={CameraStackNavigator}
/>
<BottomTabs.Screen
name="MessagingTab"
options={{ title: i18n.t("messaging.titles.messagingtab") }}