import { Container, Content, Thumbnail } from "native-base"; import React, { useState } from "react"; import { useTranslation } from "react-i18next"; import { FlatList, SafeAreaView, StyleSheet, Text, TouchableOpacity, View, } from "react-native"; import MediaCacheOverlay from "../media-cache-overlay/media-cache-overlay.component"; const REACT_APP_CLOUDINARY_IMAGE_ENDPOINT = "https://res.cloudinary.com/bodyshop/image/upload"; const REACT_APP_CLOUDINARY_THUMB_TRANSFORMATIONS = "c_fill,f_auto,h_250,w_250"; export default function JobDocumentsComponent({ job, loading, refetch }) { const { t } = useTranslation(); const [previewVisible, setPreviewVisible] = useState(false); const [imgIndex, setImgIndex] = useState(0); return ( item.id} numColumns={4} renderItem={(object) => ( { // setImgIndex(object.index); // setPreviewVisible(true); }} > )} /> {job.documents.length} ); } const styles = StyleSheet.create({ container: { flex: 1, }, actions: { display: "flex", flexDirection: "row", justifyContent: "space-evenly", }, listContentContainer: { flex: 1, }, thumbnail: { width: 10, height: 10, backgroundColor: "tomato", }, });