Fork me on GitHub
#cljsrn
<
2017-08-19
>
scknkkrer08:08:40

@seantempesta, I am so sorry for very begin.

seantempesta08:08:45

@scknkkrer: No problem. IMHO the best navigation library is reactnavigation (https://reactnavigation.org). I wrote a thin wrapper for it here (https://github.com/seantempesta/cljs-react-navigation)

seantempesta08:08:25

I wrote an example for re-frame in the examples folder.

scknkkrer08:08:58

Can you write an example for your wrapper for using re-frame that uses external modules. Because I was all night long wake and force to work that.

scknkkrer08:08:08

But I can’t.

scknkkrer08:08:15

I can’t even render a page.

seantempesta08:08:40

What do you mean “uses external modules”? You’re using re-natal right?

seantempesta08:08:56

I believe the example I wrote also used re-natal so it should support external modules.

scknkkrer08:08:08

native-base ?

scknkkrer08:08:25

I will share my code-base a little bit.

scknkkrer08:08:25

{ “name”: “fbiyer”, “interface”: “reagent6", “envRoots”: { “dev”: “env/dev”, “prod”: “env/prod” }, “modules”: [ “native-base”, “fetch”, “react-native-vector-icons”, “react-navigation”, “react-native-swiper”, “react-native-datepicker” ], “imageDirs”: [ “images” ], “platforms”: { “ios”: { “host”: “192.168.1.22", “modules”: [] }, “android”: { “host”: “10.0.2.2", “modules”: [] } } }

scknkkrer08:08:38

This is my .re-natal file

seantempesta08:08:15

And you’re saying it was rendering properly until you added native-base?

scknkkrer08:08:08

It’s already added. I just wanted to add your cool wrapper. And I can’t get any page on render.

scknkkrer08:08:10

{ “name”: “fbiyer”, “version”: “0.0.1", “private”: true, “scripts”: { “start”: “node node_modules/react-native/local-cli/cli.js start”, “test”: “jest” }, “dependencies”: { “babel-plugin-transform-es2015-block-scoping”: “6.15.0”, “native-base”: “^2.3.1”, “react”: “16.0.0-alpha.12”, “react-native”: “0.46.1”, “react-native-datepicker”: “^1.6.0”, “react-native-fetch”: “^1.0.0”, “react-native-navigation”: “^1.1.193”, “react-native-swiper”: “^1.5.10”, “react-native-vector-icons”: “^4.1.1”, “react-navigation”: “^1.0.0-beta.11” }, “devDependencies”: { “babel-jest”: “20.0.3", “babel-preset-react-native”: “2.1.0", “jest”: “20.0.4", “react-test-renderer”: “16.0.0-alpha.12" }, “jest”: { “preset”: “react-native” } }

scknkkrer08:08:20

this is my package.json file.

scknkkrer08:08:53

I just want you one thing. Can you write a nice example with re-frame ?

scknkkrer08:08:14

I am an idiot and I don’t get the whole thing in your example.

seantempesta08:08:31

Well, it’s going to be tricky debugging where the problem is happening without more information. Can you get my example running? This one… https://github.com/seantempesta/cljs-react-navigation/tree/master/examples/re-frame/uiexplorer/src/uiexplorer

scknkkrer08:08:01

Ok, give me some time, I have just wake up. Thanks for your help already.

scknkkrer08:08:22

And nice works BTW. I follow you bro. 😊

seantempesta08:08:04

I’ve been meaning to write some more documentation. It’s reassuring to know that someone else is using it. Otherwise I feel like I’m just pouring time into something that isn’t being used.

scknkkrer08:08:01

Here is my error when I try to get using “your home component and stack-navigator”.

scknkkrer08:08:11

Not native-base components.

scknkkrer08:08:07

adapting the class solve it, sorry for bothering you bro. 😔

seantempesta08:08:10

Hmm. Looks like you’re referencing a react component instead of an instance of a component. In react, they are using an Object Oriented approach where you have a class and then instances of a class (elements).

seantempesta08:08:19

ah, yeah. common problem.

scknkkrer08:08:39

One last question.

seantempesta08:08:56

I wish the error reporting on reagent was more clear about what’s actually wrong.

scknkkrer08:08:14

Sorry again. 😞