Demo adjustments, resolve upload issues, remove messaging.

This commit is contained in:
Patrick Fic
2021-01-12 18:28:58 -08:00
parent 06dda3639f
commit 7d1a265dee
18 changed files with 656 additions and 78 deletions

View File

@@ -8,6 +8,7 @@ import {
Text,
TouchableOpacity,
View,
RefreshControl,
} from "react-native";
import MediaCacheOverlay from "../media-cache-overlay/media-cache-overlay.component";
@@ -19,10 +20,17 @@ export default function JobDocumentsComponent({ job, loading, refetch }) {
const { t } = useTranslation();
const [previewVisible, setPreviewVisible] = useState(false);
const [imgIndex, setImgIndex] = useState(0);
const onRefresh = async () => {
return refetch();
};
return (
<Container>
<Content padder>
<Content
padder
refreshControl={
<RefreshControl refreshing={loading} onRefresh={onRefresh} />
}
>
<FlatList
data={job.documents}
style={{ flex: 1 }}