Fork me on GitHub
#cljsrn
<
2020-01-10
>
7tupel10:01:08

Hi, I'm playing arounf with rn and cljs. Unfortunately i cant get the rn navigator working- I already opened a stackoverflow question (https://stackoverflow.com/questions/59636093/clojurescript-and-react-native-navigator-problem), no success yet. Maybe some can help and point me in the right direction?

Eric Ihli12:01:07

I was thinking the same thing as thheller, that it has something to do with sending the navigator an element rather than a component. If you've verified that though, have you tried running it with debug enabled and with pause on caught exceptions in devtools to try to get a more useful stack trace or error message?

thheller10:01:26

> Error: The component for route 'Home' must be a React component.

thheller10:01:39

you are passing a react-element not a component

thheller10:01:15

might work if you change (def H ... to (defn H [] ...?

7tupel11:01:07

my bad. but still not working after wrapping it with rum's defc macro like (defc H [] ...) The error message stays the same. Using a simple (defn ... like you suggested doesn't work either