You need to sign in to do that
Don't have an account?
Priyanka Dhanorkar 22
How can I show image in react native app from SF files
I have a react native app that is connected to my Salesforce org, using the connected app. I am able to show the text fields from the salesforce. But when I try to show a image url in the react native app, it does not load. The url is a public url of a image stored in the files in SF.
Any pointers will be really helpful.
Any pointers will be really helpful.
Yes, you can certainly do this, it might be a case of using the correct URL.
The first step I'd take here is to use the browser Developer Console (https://facebook.github.io/react-native/docs/debugging.html) to check the network requests to see if you can find out what response reason is given for the failure (e.g. 5XX server error). With this info you should be able to decide on why it's happening.
The url is correct, since my teammates can access the image using the same url.
I have tried using the image url in Image tag as well, but no luck.
Any other help would be appreciated.
Have you ever been succesfull in showing an image from Salesoforce files into an react native app ?
Not specifically in a React Native app, but in other native and hybrid apps we have.
Do you have access to a network log (similar to those seen in browser dev tools)? If so, perhaps there's an entry in there for the image.
I could not see any issue in the dev tools.
Do you have any sample code or type of url that you can share which would show the image in any mobile app?