-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
How a Image component showing by a absolute local path #6998
Comments
@facebook-github-bot stack-overflow |
Hey @jaynsw and thanks for posting this! @charpeni tells me this issue looks like a question that would be best asked on StackOverflow. StackOverflow is amazing for Q&A: it has a reputation system, voting, the ability to mark a question as answered. Because of the reputation system it is likely the community will see and answer your question there. This also helps us use the GitHub bug tracker for bugs only. Will close this as this is really a question that should be asked on SO. |
My example is from stackoverflow. I also read a github project named react
|
I don't believe stackoverflow is the best place for this question because
|
In fact, i'm totally agree with you and i'm wondering the same question as you. However, as mentioned in the issue template this repo uses GitHub for bugs and StackOverflow for usage question. Feature requests can be post on [Product Pains](Product Pains). Please feel free to ask it on StackOverflow and post the link in this issue. After that with a good answer we'll be able to update the documentation. |
@jaynsw did you manage to figure out how to do this ? |
The url format should be same as other iOS and Android App. I suggest you
can setup a break point in cameraroll example of UIExplorer to look into it.
Jay
…On 19 Dec. 2016 3:24 am, "Salman Hasrat Khan" ***@***.***> wrote:
@jaynsw <https://github.com/jaynsw> did you manage to figure out how to
do this ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6998 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFZBPoRE_i85AI_uEdnQaPINIVpt3XuXks5rJV42gaJpZM4IIXgP>
.
|
At least on iOS I had to add an '.png' to my local file when it did not contain a suffix. |
I developed a customized image component to download the online image and saved to a local file. I can not find a way to show this local file by Image component. I am sure these file downloaded successfully, because I can open them. I have tried the following ways:
#1)
<Image source={{isStatic:true, uri:'file:///Users/jay/Library/Developer/CoreSimulator/Devices/00520C5F-1307-427E-AA55-9E1E020B2EFB/data/Containers/Data/Application/522D5404-A2EF-4117-A768-CF63A6A3EE8F/Library/Caches/6ea32f8825c207ec582ad684ac6a3494'}} style={imageStyle} />
#2)
<Image source={{isStatic:true, uri:'/Users/jay/Library/Developer/CoreSimulator/Devices/00520C5F-1307-427E-AA55-9E1E020B2EFB/data/Containers/Data/Application/522D5404-A2EF-4117-A768-CF63A6A3EE8F/Library/Caches/6ea32f8825c207ec582ad684ac6a3494'}} style={imageStyle} />
The text was updated successfully, but these errors were encountered: