This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-19
Channels
- # adventofcode (4)
- # beginners (80)
- # boot (4)
- # cbus (2)
- # cider (62)
- # clara (18)
- # cljs-dev (8)
- # cljsrn (10)
- # clojure (139)
- # clojure-brasil (3)
- # clojure-dev (27)
- # clojure-italy (1)
- # clojure-russia (3)
- # clojure-spec (4)
- # clojure-uk (47)
- # clojurescript (102)
- # core-async (10)
- # cursive (7)
- # datomic (71)
- # emacs (32)
- # fulcro (99)
- # funcool (1)
- # hoplon (3)
- # jobs (1)
- # jobs-discuss (6)
- # jobs_rus (2)
- # leiningen (3)
- # luminus (2)
- # lumo (14)
- # mount (7)
- # off-topic (19)
- # re-frame (25)
- # ring-swagger (4)
- # rum (3)
- # shadow-cljs (142)
- # specter (2)
- # sql (16)
- # timbre (1)
- # vim (3)
hi all, I'm struggling importing npm libs,.. need help.. let say import { Button, Card } from 'react-native-material-design';
how do I translate it to clojurescript? I have added react-native-material-design to package.json but, when I require it, it return error x'(
@codxse I recommend oops for object access (https://github.com/binaryage/cljs-oops) which makes extern problems go away I'm using expo and cljs, and the translation would be like this
(def react-native-material-design (js/require "react-native-material-design"))
(def button (oget react-native-material-design "Button"))
(def card (oget react-native-material-design "Card"))
what's your setup? Are you using expo or re-natal?
ah yeah it looks like it's the same syntax
https://status-im.github.io/ RN online editor