question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How a Image component showing by a absolute local path

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
charpenicommented, Apr 15, 2016

@facebook-github-bot stack-overflow

0reactions
dthueringcommented, Feb 17, 2018

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

I would like to display images from an absolute path
I am using windows. When I log onto the server I see a directory structure similar to my local PC with a C...
Read more >
HTML File Paths - W3Schools
A file path describes the location of a file in a web site's folder structure. File paths are used when linking to external...
Read more >
HTML img src (image source) with path options (5 examples)
Two options to specify a source. You may use absolute or relative paths to specify the source of the image in HTML img...
Read more >
Using Relative Paths in Markdown Images With Next.JS
A guide to using relative paths for images inside Markdown in your Next.js blog. Transform relative paths to absolute ones using your own ......
Read more >
Relative and absolute paths, in the file system and on the web ...
The difference between absolute and relative paths · If the path is built starting from the system root, it is called absolute. ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found