First thanks a lot for such a lightening fast response @notbrent, appreciated.
My concerns for expo-sharing sharing are:
Yes, writing to file and sharing it is an option, but I don’t want to deal with extra permissions (I am trying to keep the app with minimum possible permissions)
While sharing, I can not add additional auto-generated text into the message (user can write whatever she wants, but I want to embed some default text)
PS: The social experience I wanted to mean was the auto generated text.
Yes, writing to file and sharing it is an option, but I don’t want to deal with extra permissions (I am trying to keep the app with minimum possible permissions)
your app already includes filesystem permissions in order to use assets and over the air updates, or use asyncstorage, or many other things, so that is not a concern
While sharing, I can not add additional auto-generated text into the message (user can write whatever she wants, but I want to embed some default text)
gotcha. can you show me a screenshot of the ui that you’re going for on ios and android?
For the UI, unfortunately I can not show because it is not ready yet. (For now I am just experimenting with some expo snacks in order to prove myself that I am on the right track. Once I have all pieces ready then I want to start the implementation.) If you want I can show snacks, but they will give you no information because I could not find a method to achieve my target so I have nothing in my hand.
i mean if you can show me a screenshot from another app that does this same kind of sharing you have in mind it would be useful for me to understand exactly what technique they are using for that
ah ok, so you would like to have support for Apple Developer Documentation to customize what is shared depending on what the share target supports. that makes sense
That is what I am trying to automate within an expo application. I am planning to generate the picture on the fly, attach an explanation text, and let the user decide how she wants to distribute it.
Now checked, confirmed, file sharing works as a charm. (Thanks to @notbrent)
Apparently the ‘file://’ part was missing in my code.
//this works
let imgFile = `file://${await this.getImageFile()}`;
One final question; in the roadmap of expo-sharing, is there any chance of adding a new parameter of a text message (addition to the exiting file parameter)? File sharing is great, but this extra mile can make it even more useful.