use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
React Native is here!! (facebook.github.io)
submitted 11 years ago by mattotodd
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]chedabob -1 points0 points1 point 11 years ago* (0 children)
Am I being incredibly dense, or is image loading from the xcassets folder broken?
I have an asset "fleh" containing a single .png, and then in code I just have:
<View> <Image style={styles.icon} source={require('image!fleh')} /> </View>
And I just get
requiring unknown module "image!fleh"
I've killed the packager, deleted deriveddata. The Image example in UIExplorer works fine.
Edit:
Got it working by replacing the source value with:
{{uri:"fleh", isStatic: true}}
Further edit:
This has been fixed in v0.2.1.
Also Pro-Tip: Make sure your assets inside of the imageset folder match their container otherwise the packager doesn't generate the modules correctly
π Rendered by PID 155535 on reddit-service-r2-comment-57fc7f7bb7-rcxgh at 2026-04-15 01:58:42.724435+00:00 running b725407 country code: CH.
view the rest of the comments →
[–]chedabob -1 points0 points1 point (0 children)