Fork me on GitHub
#cljsrn
<
2015-11-30
>
johanatan04:11:07

@artemyarulin: Yes! The same but with Om Next would be great!

johanatan07:11:23

@mfikes: how do we get parinfer in Replete?

mfikes11:11:44

@johanatan: just send me an email address you'd like me to have Apple's TestFlight send a beta invitation

gphilipp12:11:44

Hi @mfikes, I’ve been trying to integrate https://github.com/aksonov/react-native-tableview like you did with your article on the react-native-swiper but to no avail. I’m stuck by a xcode compilation issue where RNCellViewManager can’t locate RCTViewManager.h. I’ve added React as a build phase dependencies with Link Binary with Libraries but it’s doesn’t work better.

gphilipp12:11:13

(i use Natal)

mfikes13:11:29

@gphilipp: One idea is to, on the side, do react-native init FooApp to just try it in a plain-vanilla fashion, and then go through https://github.com/aksonov/react-native-tableview#getting-started

mfikes13:11:52

(In other words, try to isolate it to regular Regular React Native)

gphilipp13:11:34

Good advice. This is what I did. I followed the getting started instructions of the component’s github ,it compiles ok in XCode but it fails when I hit Run:

2015-11-30 14:25:52.626 [trace][tid:com.facebook.React.JavaScript][RCTContextExecutor.m:129] 'Failed to print error: ', 'Requiring module "NativeModules" which threw an exception'
2015-11-30 14:25:52.627 [trace][tid:com.facebook.React.JavaScript][RCTContextExecutor.m:129] 'Failed to print error: ', 'Requiring module "ExceptionsManager" which threw an exception’
It seems [others](http://stackoverflow.com/questions/32949615/setting-up-react-native-unhelpful-error-messages) have seen this issue as well.

gphilipp13:11:46

Note that I didn’t even edit index.io.js

gphilipp17:11:02

Ok, I started over, and I finally made it work: https://github.com/gphilipp/FooApp/blob/master/README.md

gphilipp17:11:26

just with plain vanilla react-native that is.

gphilipp17:11:54

Now I’ll have to understand why it won’t work through Natal/Ambly

mfikes20:11:27

@gphilipp: I got it to work. Will put it in a repo on GitHub.

gphilipp20:11:21

That’s great Mike, I’m looking forward to see it ! I think I’m about to succeed as well, I just need to properly require TableView.Section and TableView.Item from core.cljs.

mfikes20:11:42

(def TableView (js/require "react-native-tableview/index.js"))
(def Section TableView.Section)
(def Item TableView.Item)

gphilipp20:11:24

Ok, I was quite far simple_smile

(def tableview (js/require "react-native-tableview/index.js"))

(defn table-view [opts & children]
    (apply js/React.createElement
           tableview (clj->js opts) children))

(defn section [opts & children]
    (apply js/React.createElement ((.Section) table-view)) children)

gphilipp20:11:06

Fantastic ! Thanks Mike

gphilipp20:11:58

Woot, got it working on my side too. Still have issues with FlexLayout, but no big deal. Thanks again.

gphilipp21:11:55

Didn’t you have to comment out some tests in the objective-c code of the component (which would not compile)

mfikes21:11:18

@gphilipp: I never even looked at the tests. I just set up the project and made changes to the prod code.

mfikes22:11:59

Clone and do npm install and natal launch per README.md and that's it. :)