This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-16
Channels
- # alda (1)
- # aws-lambda (1)
- # bangalore-clj (1)
- # beginners (70)
- # boot (24)
- # cider (1)
- # cljs-dev (167)
- # cljsjs (8)
- # cljsrn (17)
- # clojure (224)
- # clojure-android (7)
- # clojure-austin (8)
- # clojure-russia (17)
- # clojure-spec (120)
- # clojure-uk (46)
- # clojurescript (68)
- # community-development (198)
- # conf-proposals (1)
- # core-async (7)
- # cursive (6)
- # datomic (27)
- # dirac (19)
- # events (9)
- # hoplon (2)
- # jobs (1)
- # luminus (9)
- # off-topic (1)
- # om (281)
- # om-next (5)
- # onyx (50)
- # pedestal (1)
- # re-frame (19)
- # reagent (11)
- # ring-swagger (14)
- # slack-help (2)
- # spacemacs (1)
- # untangled (72)
- # yada (30)
I’m trying to use an outside component, but I think I’ve messed something up. Component in question: https://github.com/jorilallo/react-native-emoji Command line things run:
re-natal use-component react-native-emoji
re-natal use-figwheel
Followed by restarting react-native and figwheel.
The relevant code:
(def Emoji (js/require "react-native-emoji”))
(def emoji (r/adapt-react-class Emoji))
(defn app-root []
… (other components here)
[emoji {:name “coffee”}]
Currently failing with
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. Check the render method of `lub.ios.core.app_root`.
instantiateReactComponent
instantiateReactComponent.js:86
instantiateChild
ReactChildReconciler.js:30
… (I can paste more, but I wouldn’t think this is that important)
Does anyone have an idea on what I’m doing wrong?
@surreal.analysis are you using (clj->js args)?
Hmm, where would I do that @boorad ?
I haven’t seen that in any example so far
No luck
Still no luck
Trying lein prod-build
now
Same issue, which means that it should be a problem with my code, not my setup
Same @boorad ! If you get bored and think “I’d like to pair in person on a random person’s issues”, feel free to reach out 🙂
@surreal.analysis I’m at the Union Station hotel, not sure what I’m doing tonight - may hack