Improved uploads & handling for temp jobs. IO-399 IO-398 IO-69
This commit is contained in:
17
App.js
17
App.js
@@ -1,10 +1,9 @@
|
||||
import { ApolloProvider } from "@apollo/client";
|
||||
import { Ionicons } from "@expo/vector-icons";
|
||||
import AppLoading from "expo-app-loading";
|
||||
import * as FileSystem from "expo-file-system";
|
||||
//import * as FileSystem from "expo-file-system";
|
||||
import * as Font from "expo-font";
|
||||
import React from "react";
|
||||
import { SafeAreaView } from "react-native";
|
||||
import { Provider } from "react-redux";
|
||||
import { PersistGate } from "redux-persist/integration/react";
|
||||
import * as Sentry from "sentry-expo";
|
||||
@@ -39,11 +38,11 @@ export default class App extends React.Component {
|
||||
...Ionicons.font,
|
||||
});
|
||||
this.setState({ isReady: true });
|
||||
await FileSystem.makeDirectoryAsync(
|
||||
FileSystem.documentDirectory + "photos"
|
||||
).catch((e) => {
|
||||
console.log(e, "Directory already exists");
|
||||
});
|
||||
// await FileSystem.makeDirectoryAsync(
|
||||
// FileSystem.documentDirectory + "photos"
|
||||
// ).catch((e) => {
|
||||
// console.log(e, "Directory already exists");
|
||||
// });
|
||||
}
|
||||
|
||||
render() {
|
||||
@@ -55,9 +54,7 @@ export default class App extends React.Component {
|
||||
<Provider store={store}>
|
||||
<PersistGate persistor={persistor}>
|
||||
<ApolloProvider client={client}>
|
||||
<SafeAreaView style={{ flex: 1 }}>
|
||||
<ScreenMainComponent />
|
||||
</SafeAreaView>
|
||||
<ScreenMainComponent />
|
||||
</ApolloProvider>
|
||||
</PersistGate>
|
||||
</Provider>
|
||||
|
||||
Reference in New Issue
Block a user