This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-15
Channels
- # admin-announcements (7)
- # alda (1)
- # aws-lambda (1)
- # beginners (12)
- # boot (20)
- # cider (59)
- # cljs-dev (4)
- # cljsrn (69)
- # clojure (232)
- # clojure-austin (3)
- # clojure-austria (1)
- # clojure-belgium (2)
- # clojure-canada (3)
- # clojure-dev (16)
- # clojure-greece (33)
- # clojure-nl (4)
- # clojure-quebec (12)
- # clojure-russia (12)
- # clojure-spec (27)
- # clojure-uk (38)
- # clojurescript (29)
- # community-development (7)
- # component (53)
- # core-async (16)
- # core-logic (1)
- # datascript (7)
- # datomic (11)
- # editors (7)
- # emacs (69)
- # hoplon (157)
- # keechma (1)
- # lambdaisland (2)
- # lein-figwheel (31)
- # leiningen (8)
- # mount (3)
- # off-topic (11)
- # om (23)
- # onyx (64)
- # planck (2)
- # re-frame (18)
- # reagent (21)
- # specter (118)
- # untangled (145)
- # yada (1)
@vikeri: also, how do you updated re-natal to [email protected]
@rastandy: We recently talked about it. You need upgrade re-natal (this is only update re-natal) and then update react-native, see https://facebook.github.io/react-native/docs/upgrading.html
I remember that read about «em» in RN
hope found it
@rastandy: well RN exposes a Dimensions object. With that you can get the screen width and height. And with that you have a dynamic font size based on the screen size. Eg. Over 400px wide gives a base font size of 16 and below you have 14 or something.
@vikeri: You need also PixerRatio
I think that if calculate font-size based on Dimension and PixelRatio we get smth like «em» in web)
ok, thank @savelichalex
@rastandy: show error
@savelichalex: ok, just a sec
Got JS Exception: SyntaxError: Unexpected EOF 06-15 03:50:11.547 1628 1714 E unknown:React: Exception in native call from JS 06-15 03:50:11.547 1628 1714 E unknown:React: java.lang.RuntimeException: SyntaxError: Unexpected EOF (<unknown file>:1) 06-15 03:50:11.547 1628 1714 E unknown:React: at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method) 06-15 03:50:11.547 1628 1714 E unknown:React: at android.os.Handler.handleCallback(Handler.java:739) 06-15 03:50:11.547 1628 1714 E unknown:React: at android.os.Handler.dispatchMessage(Handler.java:95) 06-15 03:50:11.547 1628 1714 E unknown:React: at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31) 06-15 03:50:11.547 1628 1714 E unknown:React: at android.os.Looper.loop(Looper.java:148) 06-15 03:50:11.547 1628 1714 E unknown:React: at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:187) 06-15 03:50:11.547 1628 1714 E unknown:React: at java.lang.Thread.run(Thread.java:818) 06-15 03:50:11.550 1628 1714 I ReactNativeJS: ERROR FETCHING FEED: [:feeds/feed-by-url http://www.cmcc.it/events?feed=events] 06-15 03:50:11.556 1628 1714 E ReactNativeJNI: Got JS Exception: SyntaxError: Unexpected EOF 06-15 03:50:11.557 1628 1714 E unknown:React: Exception in native call from JS 06-15 03:50:11.557 1628 1714 E unknown:React: java.lang.RuntimeException: SyntaxError: Unexpected EOF (<unknown file>:1) 06-15 03:50:11.557 1628 1714 E unknown:React: at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method) 06-15 03:50:11.557 1628 1714 E unknown:React: at android.os.Handler.handleCallback(Handler.java:739) 06-15 03:50:11.557 1628 1714 E unknown:React: at android.os.Handler.dispatchMessage(Handler.java:95) 06-15 03:50:11.557 1628 1714 E unknown:React: at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31) 06-15 03:50:11.557 1628 1714 E unknown:React: at android.os.Looper.loop(Looper.java:148) 06-15 03:50:11.557 1628 1714 E unknown:React: at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:187) 06-15 03:50:11.557 1628 1714 E unknown:React: at java.lang.Thread.run(Thread.java:818)
@rastandy: oh my) ok, smth wrong with js. Are you sure that all fine with your code? Are you try to remove node_modules and install them again?
@rastandy: maybe this is issue will help you https://github.com/facebook/react-native/issues/4407
@savelichalex: I’m pretty sure my code works because it happens with some feeds (i’m downloading xml feed data) and not others
@rastandy: I had some problems with fetch on android, but after upgrade to 0.27 this problems were solved for me
@savelichalex: oh yeah? fetch problems are fixed?
@pesterhazy: Looks like yes) On 0.25 I have an error with isomorphic-fetch, but after upgrade to 0.27 all works fine
@savelichalex: thanks! That’s what I hoped and why I would like to upgrade
@savelichalex: cool. what's isomorphic-fetch?
@rastandy: ok, step by step what i’m do:
1. re-natal upgrade
2. npm i [email protected] —save
3. react-native upgrade (this is can overwrite some your files, make backup before do it, if you change some, for ie build.gradle)
4. check dependensies in package.json (i have [email protected] and [email protected])
5. maybe you need to drop node_modules and do npm i
if you have any trouble
that’s all
@pesterhazy: looks like that everybody using this for fetch) there is simple library that return node-fetch for node, whatwg-fetch for web and so on, but looks like this library doesn’t maintained anymore and have bugs. I thought that in 0.27 they drop isomorphic-fetch as dependency
@savelichalex: thanks for the explanation
@pesterhazy: big problem for js community is low quality packages) that’s why i love clojure)
@savelichalex: thanks for describing your steps
@savelichalex: I did pretty the same but with react-native 0.27.0. Need to try 0.27.2
@savelichalex: many thanks again for your help
@rastandy: just paste it on snippet)
↙️ create snippet
@rastandy: What the 49 line?
totally worthless stack traces 😄
Not sure that in bundle
But check it)
Nice idea, I’m always trying lein prod-build because there is a way to get all compile time errors 😉
clim_earth.android.core.Feed.prototype = goog.object.clone(React.Component.prototype);