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

How a Image component showing by a absolute local path #6998

Closed
pomelio opened this issue Apr 15, 2016 · 8 comments
Closed

How a Image component showing by a absolute local path #6998

pomelio opened this issue Apr 15, 2016 · 8 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@pomelio
Copy link

pomelio commented Apr 15, 2016

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} />

@charpeni
Copy link
Contributor

@facebook-github-bot stack-overflow

@facebook-github-bot
Copy link
Contributor

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.

@facebook-github-bot facebook-github-bot added the Ran Commands One of our bots successfully processed a command. label Apr 15, 2016
@pomelio
Copy link
Author

pomelio commented Apr 15, 2016

My example is from stackoverflow. I also read a github project named react
native image cache. None of them work.
I Think this should be put in official document if there is a way
On 16 Apr 2016 12:31 AM, "Nicolas Charpentier" [email protected]
wrote:

@facebook-github-bot https://github.com/facebook-github-bot
stack-overflow


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#6998 (comment)

@pomelio
Copy link
Author

pomelio commented Apr 15, 2016

I don't believe stackoverflow is the best place for this question because
this looks like a new feature being requested or a missing document for a
popular feature. Anyway if you want to be peaceful just neglect my point.
On 16 Apr 2016 12:38 AM, "Facebook Community Bot" [email protected]
wrote:

Hey @jaynsw https://github.com/jaynsw and thanks for posting this!
@charpeni https://github.com/charpeni tells me this issue looks like a
question that would be best asked on StackOverflow
http://stackoverflow.com/questions/tagged/react-native. 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.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#6998 (comment)

@charpeni
Copy link
Contributor

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.

@salmankhann
Copy link

@jaynsw did you manage to figure out how to do this ?

@pomelio
Copy link
Author

pomelio commented Dec 19, 2016 via email

@dthuering
Copy link

At least on iOS I had to add an '.png' to my local file when it did not contain a suffix.

@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

6 participants