Remove all native base dependencies.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { Thumbnail } from "native-base";
|
||||
import React, { useState } from "react";
|
||||
import {
|
||||
FlatList,
|
||||
Image,
|
||||
RefreshControl,
|
||||
StyleSheet,
|
||||
Text,
|
||||
@@ -33,15 +33,15 @@ export default function JobDocumentsComponent({ job, loading, refetch }) {
|
||||
renderItem={(object) => (
|
||||
<TouchableOpacity
|
||||
onPress={() => {
|
||||
// setImgIndex(object.index);
|
||||
// setPreviewVisible(true);
|
||||
setImgIndex(object.index);
|
||||
setPreviewVisible(true);
|
||||
}}
|
||||
>
|
||||
<Thumbnail
|
||||
square
|
||||
large
|
||||
<Image
|
||||
style={{ margin: 5 }}
|
||||
source={{
|
||||
width: 100,
|
||||
height: 100,
|
||||
uri: `${REACT_APP_CLOUDINARY_IMAGE_ENDPOINT}/${REACT_APP_CLOUDINARY_THUMB_TRANSFORMATIONS}/${object.item.key}`,
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user