diff --git a/App.js b/App.js index f55182a..88bc558 100644 --- a/App.js +++ b/App.js @@ -4,12 +4,7 @@ import AppLoading from "expo-app-loading"; import * as FileSystem from "expo-file-system"; import * as Font from "expo-font"; import React from "react"; -import { - SafeAreaView, - StatusBar as rnStatusBar, - StyleSheet, -} from "react-native"; -import { SafeAreaProvider } from "react-native-safe-area-context"; +import { StatusBar as rnStatusBar, StyleSheet } from "react-native"; import { Provider } from "react-redux"; import { PersistGate } from "redux-persist/integration/react"; import * as Sentry from "sentry-expo"; @@ -60,9 +55,7 @@ export default class App extends React.Component { - - - + diff --git a/components/screen-camera/screen-camera.jsx b/components/screen-camera/screen-camera.jsx index 52d9e42..bc5f08f 100644 --- a/components/screen-camera/screen-camera.jsx +++ b/components/screen-camera/screen-camera.jsx @@ -1,9 +1,8 @@ -import { Ionicons } from "@expo/vector-icons"; import { useFocusEffect, useNavigation } from "@react-navigation/native"; import { Camera } from "expo-camera"; import * as FileSystem from "expo-file-system"; import React, { useEffect, useRef, useState } from "react"; -import { SafeAreaView, Text, TouchableOpacity, View } from "react-native"; +import { SafeAreaView, Text, View } from "react-native"; import { connect } from "react-redux"; import { createStructuredSelector } from "reselect"; import { @@ -131,9 +130,7 @@ export function ScreenCamera({ cameraJobId, cameraJob, addPhoto }) { const { flashMode, cameraType, capturing } = state; return ( - + - { - navigation.push("MediaCache"); - }} - style={{ - alignSelf: "flex-start", - alignItems: "center", - fontSize: 20, - fontWeight: "bold", - }} - > - - ({ signOutStart: () => dispatch(signOutStart()), }); -Dinero.globalLocale = "en-CA"; - -const LeftDrawerButton = (props, navigation) => ( - navigation.toggleDrawer()} - /> -); - const JobStackNavigator = ({ navigation }) => ( ({ title: `${i18n.t("joblist.labels.activejobs")}`, - headerLeft: (props) => LeftDrawerButton(props, navigation), })} component={ScreenJobList} /> @@ -90,23 +75,17 @@ const CameraStackNavigator = ({ navigation }) => ( options={{ headerShown: false }} component={ScreenCamera} /> - {/* */} - - ); const MediaCacheStackNavigator = ({ navigation }) => ( - - + - + ); const MessagingStackNavigator = ({ navigation }) => ( @@ -121,6 +100,17 @@ const MessagingStackNavigator = ({ navigation }) => ( /> ); +const MoreStackNavigator = ({ navigation }) => ( + + + +); const BottomTabsNavigator = () => ( ( options={{ title: i18n.t("mediacache.titles.mediacachetab") }} component={MediaCacheStackNavigator} /> - { - // - } - -); - -const DrawerNavigator = ({ navigation }) => ( - - - - + + ); export function ScreenMainComponent({ @@ -202,7 +182,7 @@ export function ScreenMainComponent({ ) : currentUser.authorized ? ( bodyshop ? ( - + ) : ( ) @@ -216,13 +196,3 @@ export default connect( mapStateToProps, mapDispatchToProps )(ScreenMainComponent); - -const styles = StyleSheet.create({ - container: { - flex: 1, - backgroundColor: "#fff", - alignItems: "center", - justifyContent: "center", - paddingTop: Platform.OS === "android" ? rnStatusBar.currentHeight : 0, - }, -});