where Camera.tackePicture function saves the photos?, I have searched my device but I could not found them. I have used console.log to print the path but I could not found it either.
I’m facing troubles while interacting with the filesystem is there any tutorial or examples?
Camera.takePictureAsync saves the photo to the cache directory provided by iOS/Android. This means the photo may disappear if the OS clears the cache. From the Camera docs:
Returns a Promise that resolves to an object: { uri, width, height, exif, base64 } where uri is a URI to the local image file…
You then may want to move the image at that URI to another location:
The local image URI is temporary. Use Expo.FileSystem.copyAsync to make a permanent copy of the image.
Are you sure ${FileSystem.documentDirectory}photos directory exists? I think something similar happened to me once. If this is the reason we should definitely provide a more detailed message
Okay, so ImageEditor is not in your app’s scope because it is generated by the Editor and not Expo. I’m afraid this cannot be modified with use of FileSystem ( @nikki ? ). Have you considered using ImageManipulator to crop your image?
Expo’s FileSystem module can copy/move/etc. files that are previously saved in the app’s scope (for example via ImagePicker or using Asset.loadAsync). ImagerEditor is a core React Native functionality and it saves your image to a file that is outside Expo’s scope, thus FileSystem cannot perform actions on this file. Is this a bit clearer now?
Much clearer. I think expo and react-native should be complementing each other, and expo should extends react-native functionalities (add-hoc) not overriding them, I may be wrong anyway thanks for your response great team!.