I have a question about sharing a local image with showShareActionSheetWithOptions .
Here is my code:
ActionSheetIOS.showShareActionSheetWithOptions({ title: "React Native", message: "Hola mundo", url: '@theme/img/share/share.png', subject: "Share Link" // for email });
From the documentation : "If the URL points to a local file, or it is a base64 encoded URI, then the specified file will be downloaded and transferred directly."
But that will not work. I am not sure how to access or how to get the path to the image. In my application root folder (where index.io.js is located) I have a "src / theme / img" folder where all my images are.
In the example from native-native, they have the image in which the .js file is located, but this also does not work.
source share