This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-28
Channels
- # admin-announcements (4)
- # beginners (11)
- # boot (148)
- # cider (74)
- # cljs-dev (31)
- # cljsrn (30)
- # clojure (55)
- # clojure-berlin (15)
- # clojure-greece (1)
- # clojure-japan (18)
- # clojure-poland (35)
- # clojure-russia (72)
- # clojure-spec (35)
- # clojure-uk (34)
- # clojurescript (134)
- # cursive (26)
- # datomic (42)
- # dirac (7)
- # editors-rus (1)
- # emacs (17)
- # hoplon (29)
- # jobs-rus (3)
- # juxt (1)
- # luminus (11)
- # off-topic (9)
- # om (66)
- # onyx (49)
- # pedestal (1)
- # perun (19)
- # proton (13)
- # protorepl (5)
- # re-frame (31)
- # reagent (13)
- # ring (2)
- # spacemacs (1)
- # specter (40)
- # spirituality-ethics (2)
- # test-check (41)
- # untangled (7)
- # yada (17)
Anyone successfully loading image from local file system?
I've checked the image has been downloaded to that path, i'm using react-native-fs
yeah, i did it
one sec
@tiensonqin: the "~" part probably won't work, use an absolute path (`/Users/...`)
also, you may want to try file://
as a url (what you have is not a valid url)
the usual way to do this is to use assets
@pesterhazy: @savelichalex thanks, I actually tried the absolute uri and file://
, don't work for me,
RN 0.29, debug mode
Are you sure that file exist?
I have an error in snippet
try again
I'm typing (str (.-DocumentDirectoryPath fs) "/avatar.jpg")
, and it gives me "/var/mobile/Containers/Data/Application/D4DA0419-D878-4A0C-B083-03A3526AAAC6/Documents/avatar.jpg"
Looks fine
`(file-exists? "/var/mobile/Containers/Data/Application/D4DA0419-D878-4A0C-B083-03A3526AAAC6/Documents/avatar.jpg")
print true
@savelichalex: Is loading working for you in debug mode?
For all modes)
Ok, thanks, maybe it's something wrong with me.
I’m trying that with just Image and with gl-react-native
maybe absolute paths don't work?
they should work with protocol
possibly the simulator is somehow sandboxed
file://
That should work in simulator too fine
file://
not work for me too, I'm testing in device
¯\(ツ)/¯
For me that work on simulator, ipad2, ipad air 2, android devices
Need to sleep, weird thing, will check it tomorrow, thank you, @savelichalex @pesterhazy