Skip to content
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

add filename parameter in V1.x #649

Closed
badaz opened this issue Dec 15, 2019 · 7 comments
Closed

add filename parameter in V1.x #649

badaz opened this issue Dec 15, 2019 · 7 comments

Comments

@badaz
Copy link

badaz commented Dec 15, 2019

Thanks for this nice lib! I need to specify a filename for my base64 file so that when I share it by email, the filename is human readable. However I'm stuck using react-native v0.59 at the moment (because of other libs very hard to migrate) so I wonder if you plan to make the filename parameter available in the v1 version of the lib?

@mikehardy
Copy link
Collaborator

mikehardy commented Dec 15, 2019

Use the most current libs you can, for those that moved to AndroidX (like this one), use jetifier -r

https://github.com/mikehardy/jetifier#to-reverse-jetify--convert-node_modules-dependencies-to-support-libraries

@badaz
Copy link
Author

badaz commented Dec 15, 2019

Thanks, I was about to edit my issue since I found the jetifier trick reading another issue. However I can't make the filename parameter work, even using V2.0.0 (method open and/or shareSingle). I've looked at the code and there is really no reason why this should not work, I pass the simplest string "file", yet the attachement in the email ends up having a nanotime generated name. I guess this is another issue however.

@mikehardy
Copy link
Collaborator

I've looked at the code and there is really no reason why this should not work, I pass the simplest string "file", yet the attachement in the email ends up having a nanotime generated name. I guess this is another issue however.

I concur

@badaz
Copy link
Author

badaz commented Dec 15, 2019

ok, I think this is because I am not using master but 2.0.0 from npm, which does not include the filename thing, found a hint in #611 it's working now, requiring #master in my package.json

@jgcmarins
Copy link
Member

@badaz master branch solved your problem?
Let us know if there is any issue going on master.
We're planning a release. Thanks.

@badaz
Copy link
Author

badaz commented Dec 17, 2019

@jgcmarins yes, it is working with master, but only when using shareSingle, as hinted in #611, and not when using open. If it is a quick fix it would be great to make it work with open.

@badaz
Copy link
Author

badaz commented Dec 17, 2019

@jgcmarins please keep me updated on this, since if you're not fixing the filename parameter not working in the open method I might consider creating a Pull Request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants