This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-12-09
Channels
- # adventofcode (187)
- # aws (1)
- # aws-lambda (1)
- # beginners (162)
- # boot (64)
- # cljs-dev (6)
- # cljsjs (2)
- # cljsrn (32)
- # clojure (357)
- # clojure-greece (1)
- # clojure-korea (4)
- # clojure-russia (63)
- # clojure-sanfrancisco (3)
- # clojure-spec (91)
- # clojure-uk (63)
- # clojurescript (74)
- # clojurex (10)
- # code-reviews (55)
- # core-async (4)
- # core-typed (1)
- # cursive (17)
- # datascript (36)
- # datomic (43)
- # devcards (4)
- # dirac (3)
- # emacs (59)
- # hoplon (286)
- # jobs-discuss (399)
- # luminus (4)
- # mount (9)
- # off-topic (30)
- # onyx (53)
- # protorepl (3)
- # re-frame (88)
- # reagent (4)
- # spacemacs (1)
- # specter (14)
- # untangled (1)
- # vim (42)
I've seen some presentations about clojurescript and react native and decided to give it a try. I got sample app with re-natal and android but now I wanted to add some material design so I installed reat native material design components according to this https://github.com/react-native-material-design/react-native-material-design and when I'm importing namespace in clojure with (set! js/MaterialDesign (js/require "react-native-material-design"))
I got an 'unknown named module'
error. Are there some tips how to set it up somewhere ?
now I ran re-natal use-component react-native-material-design
and then re-natal use-figwheel
. but still has that error
@charafau are you restart lein and application?
please show your .re-natal
file
{
"name": "FutureApp",
"interface": "reagent6",
"androidHost": "localhost",
"iosHost": "localhost",
"envRoots": {
"dev": "env/dev",
"prod": "env/prod"
},
"modules": [
"react-native-material-design"
],
"imageDirs": [
"images"
]
}
ok, just for the future re-natal use-component
add this module to modules section in .re-natal
, re-natal use-figheel
generate index.ios.js
and index.android.js
based on .re-natal
files
also check that you install that module through npm
I installed module with npm, done re-natal use-figwheel
once again, run react-native run-android
and lein figwheel android
@charafau I had some issues with not finding an installed library recently, using boot-react-native though, but I solved it by rm -rf node_modules
and then yarn
.
@vikeri I’ve seen your tutorial on youtube, maybe I should try that steps? I tried with re-natal tutorial on github
@charafau Alright, well I’ve switched to boot-react-native now, so can’t help you with re-natal unfortunately
@charafau another option it is don't forget to completly stop react-packager before run application
because they read from generated index files
not sure that understand what is it clean build)
@charafau You can start the packager like this npm start -- --reset-cache
but I’m not sure that will help