diff --git a/README.md b/README.md index 46c79921db76853e51980cacd908a79b40fe1378..91bcc9f078d309a3a3209f2d639e032e1c855238 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,9 @@ # PhotographyApp - Feature/Camera #### This feature will allow users to take photos and share them with other users. I would like to find out how I could get users to post their content and present this to new users. This is so that I could setup some type of like/dislike system so that whoever gets voted more, will be presented on a leaderboard. Instead of only having one vote, which will be impossible for various users, I am thinking of a like system where whoever gets most likes is put towards the top of the leaderboard. + + +## 27/03/2025 + #### I have just added the fetch POST commands to push my photos to my server. I have attempted to use Axios to communicate with the server, but Fetch seemed to work easier for me. I used RNFS to change the path of my file; VisionCamera makes the path of the photos hidden so RNFS is required. + + \ No newline at end of file diff --git a/screens/CameraScreen.js b/screens/CameraScreen.js index dfc49bb49a4486cc167fc02a65b2a2aeea1933cd..bf7e2398453f87da00e437bfae99b9610e6461ee 100644 --- a/screens/CameraScreen.js +++ b/screens/CameraScreen.js @@ -26,9 +26,6 @@ const CameraScreen = ({ navigation }) => { if (!camera.current) return; const photo = await camera.current.takePhoto(); - - - setPhoto(photo); const newPath = `${RNFS.DocumentDirectoryPath}/photo.jpg`; // Use a valid path await RNFS.moveFile(photo.path, newPath);