react-native-image-picker: Image doesn't appear in gallery after saving [Android]
When setting storageOptions: {} (such as in the example app), the docs say “the image will get saved in … the Pictures directory on Android”. I think it used to do this, but no longer.
Repro steps:
- Run the example app on Android
- Take a picture
- Check your gallery app, it’s not there
- Check your Pictures folder, it’s not there either
Tested on a Nexus 5X 6.0 emulator (using latest master 62cf9edbde45240a75b45c789042c9db488c6b76) and a Nexus 6P 6.0 physical device (using v0.25.7). I haven’t tested on iOS because the simulator isn’t able to take pictures.
Clarification: It sounds like currently the image is being saved under your app’s .../your_package_name/files/Pictures/, whereas I assumed it would be saved under the shared /sdcard/Pictures/. Read below for more details about upcoming changes.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (14 by maintainers)
Commits related to this issue
- Clarify which folders will be used with `storageOptions` As discussed in https://github.com/marcshilling/react-native-image-picker/issues/508. — committed to cooperka/react-native-image-picker by cooperka 7 years ago
- Clarify which folders will be used with `storageOptions` (#511) As discussed in https://github.com/marcshilling/react-native-image-picker/issues/508. — committed to react-native-image-picker/react-native-image-picker by cooperka 7 years ago
- Clarify which folders will be used with `storageOptions` (#511) As discussed in https://github.com/marcshilling/react-native-image-picker/issues/508. — committed to rupa982/react-native-image-picker by rupa982 7 years ago
settings
storageOptions.pathstill saves my pic inPictures/on my LG G3 (Android 7.1) instead of the given sub path. any idea?Great! I’ll use a workaround for now and wait for your changes.
@cooperka No problems. You can do PR for update documentation if you want. Later it’ll be updated.