Skip to content

Commit

Permalink
마운트 관련 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
juicyorange committed Dec 28, 2021
1 parent 5f447dc commit 34f2eae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/components/ListTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const ListTable = ({
}}
resizeMode="contain"
source={{
uri: `${root}:8090/METAFIGURE/Table/${profileImage[0].title}`,
uri: `${root}:8090/${targetDir}/Table/${profileImage[0].title}`,
}}
/>
)}
Expand Down Expand Up @@ -68,6 +68,7 @@ export const ListTable = ({
createDate={item.createDate}
fileType={item.fileType}
key={index}
targetDir={targetDir}
/>
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/ListTableElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ TableElement
List의 항목을 나타냅니다.
========================== */

export const TableElement = ({title, createDate, fileType, targetDir}) => {
export const TableElement = ({title, createDate, fileType, key, targetDir}) => {
const navigation = useNavigation();

const goDetail = useCallback(
Expand Down
6 changes: 5 additions & 1 deletion src/screens/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ const Home = () => {
}, []);
useEffect(() => {
toggleLoading(true);

try {
Promise.all([
getFileListDir(setTargetDir),
Expand All @@ -48,6 +47,11 @@ const Home = () => {
}
console.log(targetDir);
}, [refresh]);

useEffect(() => {
Promise.all([getFileInfo('Keyword', 'Keyword.txt', setInfo, targetDir)]);
}, [targetDir]);

console.log(profileImage);
console.log(vedioData);
console.log(pictureData);
Expand Down

0 comments on commit 34f2eae

Please sign in to comment.