This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-12-09
Channels
- # adventofcode (201)
- # bangalore-clj (5)
- # beginners (90)
- # cider (1)
- # cljs-dev (3)
- # cljsrn (28)
- # clojure (128)
- # clojure-argentina (1)
- # clojure-brasil (15)
- # clojure-dev (9)
- # clojure-greece (18)
- # clojure-italy (11)
- # clojure-madison (1)
- # clojure-poland (19)
- # clojure-russia (28)
- # clojure-spec (33)
- # clojure-uk (26)
- # clojurescript (20)
- # core-async (2)
- # cursive (1)
- # datomic (2)
- # emacs (4)
- # figwheel (3)
- # fulcro (15)
- # graphql (7)
- # hoplon (1)
- # lein-figwheel (2)
- # lumo (2)
- # numerical-computing (3)
- # off-topic (9)
- # re-frame (13)
- # ring (1)
- # shadow-cljs (1)
- # unrepl (1)
- # vim (17)
@seantempesta I reinstalled the app in the simulator, but no dice
@mv did you try changing the registerComponent to Expo’s?
You also need to change the call in figwheel-bridge.js
should become (I think)
function startApp(appName, platform, devHost) {
expo.registerRootComponent(figwheelApp(platform, devHost));
}
The only other thing with fonts that you sometimes need to do is call Font.loadAsync
and wait for it to be loaded before rendering the app
but I'm 90% sure that the error that you saw was because of the registerrootcomponent call
(defn init []
(dispatch-sync [:initialize-db])
(.registerRootComponent Expo #(r/reactify-component app-root)))
and almost everything is working surprisingly smoothly, so thanks for all the great work!!
my problem is that I’m trying to run it on an actual device now. Can this be done with figwheel?
[exp] Network request failed
- node_modules/react-native/node_modules/whatwg-fetch/fetch.js:441:29 in onerror
- node_modules/event-target-shim/lib/event-target.js:172:43 in dispatchEvent
- ... 8 more stack frames from framework internals
I’m seeing the usage of :>
a lot in example code, but I can’t find any documentation on what that operator does…
Also somewhat confused as to the difference between r/adapt-react-class
and just calling aget
on the ReactNative module
pretty sure that lets you use a native component. Have you tried running cljs expo on a device with figwheel?
the stacktrace showing on my iOS device when trying to run an exponent project on a real device using figwheel is
Network request failed
onerror
fetch.js:441:29
dispatchEvent
event-target.js:172:43
setReadyState
XMLHttpRequest.js:548:29
__didCompleteResponse
XMLHttpRequest.js:381:25
emit
EventEmitter.js:182:12
__callFunction
MessageQueue.js:306:47
<unknown>
MessageQueue.js:108:26
__guard
MessageQueue.js:269:6
callFunctionReturnFlushedQueue
MessageQueue.js:107:17