Fix up main screen navigation.

This commit is contained in:
Patrick Fic
2021-02-08 21:51:47 -08:00
parent 1cda8579a5
commit fafd2225ad
3 changed files with 30 additions and 86 deletions

View File

@@ -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 (
<SafeAreaView
style={{ display: "flex", flex: 1, backgroundColor: "tomato" }}
>
<SafeAreaView style={{ display: "flex", flex: 1 }}>
<Camera
style={{ flex: 1, display: "flex" }}
type={state.cameraType}
@@ -146,22 +143,6 @@ export function ScreenCamera({ cameraJobId, cameraJob, addPhoto }) {
}}
>
<CameraSelectJob />
<TouchableOpacity
onPress={() => {
navigation.push("MediaCache");
}}
style={{
alignSelf: "flex-start",
alignItems: "center",
fontSize: 20,
fontWeight: "bold",
}}
>
<Ionicons
name="ios-photos"
style={{ color: "#fff", fontSize: 40 }}
/>
</TouchableOpacity>
<CameraControls
capturing={capturing}