Clojurians
#cljsrn
<
2016-01-12
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

dvcrn01:01:52

@drapanjanas: let me try that :simple_smile:

meow03:01:10

do any react native folks want to help with the new chat app

dvcrn07:01:07

still can't make map callouts work with reagent :disappointed:

dvcrn07:01:09

this is a problem

meow07:01:21

@dvcrn: have you asked for help on #C0620C0C8

dvcrn07:01:09

I think it's a react native problem

dvcrn07:01:17

well, part of

dvcrn07:01:47

Debugged it a little and to pass objects from the frontend to the native code, react converts everything to json to pass it around

dvcrn07:01:21

using (reagent.core/as-element) produces a good looking element but when encoded to json it throws Uncaught TypeError: Converting circular structure to JSON

dvcrn07:01:18

Just a theory but reagent could render the element the wrong way with referencing the parent which references the child

meow07:01:53

@mikethompson: any suggestions for how to approach solving ^

dvcrn07:01:01

yup can confirm.

(.stringify js/JSON (r/as-element [view {:style {:flex 1}}
                                           [text {:style {:flex 1}} "test"]]))
is throwing the error for me

dvcrn07:01:38

I'm asking in #C0620C0C8 as well

artemyarulin08:01:31

@gphilipp: Sorry, a but overwhelmed with other staff currently. Will have a look on weekends

gphilipp08:01:41

No problem, I’ll try to figure it out until then

gphilipp08:01:43

:simple_smile:

meow08:01:43

@gphilipp: what's the issue

jellea09:01:46

hi all! :simple_smile:

dvcrn09:01:36

thanks to the support from #C0620C0C8 I got it working :simple_smile:

gphilipp12:01:54

@meow: I uploaded a new repo that explains better the issues I’m facing. https://github.com/gphilipp/cljsrn-showcase-app

gphilipp12:01:30

I’m trying to figure out a way to have a Tab Bar work with the navigator.

meow13:01:03

@dvcrn: can you help

hugod14:01:24

gphilipp: Thanks for posting that - getting the navigator to work is proving to be a bit convoluted.

gphilipp14:01:56

The problem is that the TabBar doesn’t live in the navigator scene

gphilipp14:01:54

Clicking the blue buttons (which live in the scene) work well with the navigator passed down in the renderScene function w/o have to rebind the reconciler.

gphilipp14:01:21

I need the navigator to store a ref to itself somewhere (app-state or shared, or computed or… ). This is what’s done by the author of this post http://richardkho.com/persisting-tabbars-in-react-native/

hugod15:01:44

@gphilipp: is it possible to lexically capture the navigator in your MainView’s render method? e.g. (let [nav (navigator …)] …)

gphilipp15:01:17

I haven’t tried, let’s see...

gphilipp15:01:49

It fails with an error: navigator.push is not a function. (In ‘navigator.push’, ‘navigator.push’ is undefined)