Fork me on GitHub
#cljsrn
<
2017-09-18
>
tiensonqin01:09:54

@psdp Right now I use this snippet: (defn attach [rum-component options] (let [class (js/React.createClass #js {:componentWillMount (fn [] (this-as plop (let [navigation (gobj/getValueByKeys plop “props” “navigation”)] (citrus/dispatch! :routes :set navigation)))) :render (fn [] (rum-component))})] (aset class “navigationOptions” (clj->js options)) class))

tiensonqin01:09:57

not perfect.

psdp01:09:45

@tiensonqin 👍 Thanks for that! I'm gonna give it a try

manu07:09:36

Hi! I've just started using a mac but figwheel prompt repl is not opening with android real device.. I used adb reverse tcp:8081 tcp:8081 and adb reverse tcp:3449 tcp:3449 but nothing.. with linux was working fine.. It is just the repl because the app is working fine on the device. on the adb logcat I have Figwheel: trying to open cljs reload socket

manu07:09:31

what could be the problem? thx

manu07:09:44

I solved by substituting "real" with the ip address of the pc

vikeri11:09:15

@jeaye Are you using boot-react-native?

jeaye19:09:53

@vikeri Nope, using lein.

jeaye19:09:32

I believe the issue is just as @raspasov had guessed, which is that re-natal doesn't package the preloads file. I've made a ticket here: https://github.com/drapanjanas/re-natal/issues/137

bhauman20:09:38

OK I'm finally trying to use ReactNative to see if I can make some helpful adjustments to figwheel

bhauman20:09:57

and I'm hitting my head on the FutureApp

bhauman20:09:59

An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):

bhauman20:09:40

trying to make sure I have everything installed correctly

jeaye21:09:02

I'm not likely able to help, though it's great to see you looking into RN, but will you share what command you were running when this error showed up, @bhauman?

pesterhazy22:09:49

@bhauman I may be able to help

pesterhazy22:09:23

1. what were the steps you used to get to FutureApp?

pesterhazy22:09:44

2. the issue is likely something else, can you paste the lines before this?

bhauman22:09:11

I upgraded npm

pesterhazy22:09:15

3. I guess this is on iOS. Are you looking at the output of react-native log-ios?

bhauman22:09:33

didn't know about that command

pesterhazy22:09:06

it's basically the same output as waht you see in the XCode debug pane, but more readable because it's in a terminal window

bhauman22:09:25

Scanning 571 folders for symlinks in /Users/bhauman/workspace/temp/future-app/node_modules (9ms) No active iOS device found (node:41111) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): undefined (node:41111) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

bhauman22:09:44

repoduction of commands:

bhauman22:09:52

brew upgrade node

bhauman22:09:11

npm install -g react-native-cli

bhauman22:09:27

npm install -g re-natal

bhauman22:09:37

re-natal init FutureApp

bhauman22:09:43

cd future-app

bhauman22:09:58

react-native run-ios > /dev/null

bhauman22:09:21

end reproduction

bhauman22:09:47

init FutureApp appears to complete correctly