New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
createAssetAsync save the asset instead of just creating it. #1844
Comments
Hey @moshfeu, thanks for creating that issue. An asset that you're creating needs to be saved somewhere, it cannot be just created. What I think we can do here is to add For now you can move your asset to the target album this way: |
Thanks for the response @tsapeta .
Sounds great 👍 I can't use your solution because if the album is not exist, I need to create an album with this asset
so, when I try to move the asset to this album, I have 2. One from the album creation and the second from the moving. For now, I have workaround:
|
@tsapeta what's the status? Just closed? |
@moshfeu Oh yeah, I'm sorry I closed it by accident when I merged our internal PR that (I hope) fixes this issue. It should be available to the public in the very near future. Unfortunately, it was not possible to add album parameter to createAssetAsync as I proposed previously, but we have added |
Sounds good. Thanks! |
Environment
Environment:
OS: OS X El Capitan 10.11.6
Node: 8.10.0
Yarn: Not Found
npm: 5.8.0
Watchman: Not Found
Xcode: Not Found
Android Studio: 2.3 AI-162.4069837
Packages: (wanted => installed)
expo: ^27.0.2 => 27.0.2
react: 16.3.1 => 16.3.1
react-native: https://github.com/expo/react-native/archive/sdk-27.0.0.tar.gz => 0.55.2
Diagnostics report:
https://exp-xde-diagnostics.s3.amazonaws.com/moshfeu-bda84927-2d35-4674-937b-ae59344ba3ed.tar.gz
Steps to Reproduce
Camera
object to take image from the appMediaLibrary.createAssetAsync
with theimage.uri
output from the prev step.Expected Behavior
An
Asset
will be created but not stored in a default album such as DCIM.Or I could delete this asset whenever I want. In this case the name of the default album (DCIM), will be stored in the
Constants
Or there will be a method like
removeAssetFromDefaultAlbum(asset)
or something like this.Actual Behavior
The asset saved in my default album (DCIM) instead of just been created.
I'm always keep saying "default album" but maybe it's default folder.
Some code
Reproducible Demo
https://snack.expo.io/@moshfeu/createassetasync-repro
The text was updated successfully, but these errors were encountered: