Fork me on GitHub
#cljsrn
<
2019-01-26
>
vinurs04:01:45

@gphilipp are you online?

ribelo22:01:54

@gabor.veres re-frame-firebase does not work with re-natal. There is probably a problem with cljsjs dependencies. You can use firebase directly. It works flawlessly.

ribelo22:01:30

Has someone successfully updated expo to >=30?

ribelo22:01:15

there is a fork https://github.com/jigkoxsee/exponent-cljs-template/commit/d28c7b2525763835f26620631e3bb912515904e9. Everything works with dev profile, but prod profile end up with errors.

ribelo22:01:14

undefinded is not an object (evaluating 'Xh.c')

ribelo22:01:20

Changing the compilation method to :simple does not help.

FlavaDave22:01:51

Hey so I’m trying to use re-natal per https://github.com/drapanjanas/re-natal and everything goes well until its time to use figwheel. I get the below message and then it never connects and my REPL’s always time out when I try to start them in emacs. Any thoughts? Thanks

Davids-MacBook-Pro:bar-app Dave$ react-native run-ios --configuration Debug > /dev/null

The following commands produced analyzer issues:
	Analyze /Users/Dave/Projects/bar-app/node_modules/react-native/React/Base/RCTModuleMethod.mm normal x86_64
	Analyze /Users/Dave/Projects/bar-app/node_modules/react-native/Libraries/Network/RCTNetInfo.m normal x86_64
(2 commands with analyzer issues)

Davids-MacBook-Pro:bar-app Dave$ re-natal use-figwheel
Cleaning...
index.ios.js was regenerated
index.android.js was regenerated
Host in RCTWebSocketExecutor.m was updated
Dev server host for iOS: localhost
Dev server host for Android: localhost
Davids-MacBook-Pro:bar-app Dave$ lein figwheel ios
Figwheel: Cutting some fruit, just a sec ...
Figwheel: Validating the configuration found in project.clj
Figwheel: Configuration Valid ;)
Figwheel: Starting server at 
Figwheel: Watching build - ios
Figwheel: Cleaning build - ios
Compiling "target/ios/index.js" from ["src" "env/dev"]...
Successfully compiled "target/ios/index.js" in 20.006 seconds.
Launching ClojureScript REPL for build: ios
Figwheel Controls:
          (stop-autobuild)                ;; stops Figwheel autobuilder
          (start-autobuild [id ...])      ;; starts autobuilder focused on optional ids
          (switch-to-build id ...)        ;; switches autobuilder to different build
          (reset-autobuild)               ;; stops, cleans, and starts autobuilder
          (reload-config)                 ;; reloads build config and resets autobuild
          (build-once [id ...])           ;; builds source one time
          (clean-builds [id ..])          ;; deletes compiled cljs target files
          (print-config [id ...])         ;; prints out build configurations
          (fig-status)                    ;; displays current state of system
          (figwheel.client/set-autoload false)    ;; will turn autoloading off
          (figwheel.client/set-repl-pprint false) ;; will turn pretty printing off
  Switch REPL build focus:
          :cljs/quit                      ;; allows you to switch REPL to another build
    Docs: (doc function-name-here)
    Exit: Control+C or :cljs/quit
 Results: Stored in vars *1, *2, *3, *e holds last exception object
Prompt will show when Figwheel connects to your application

ribelo23:01:58

@dgonsalves22 have you launched a metro bundler and an application on your phone?

ribelo23:01:06

re-natal use-ios-device simulator react-native run-ios

ribelo23:01:21

re-natal use-ios-device real react-native run-ios

FlavaDave23:01:17

@huxley Yes I have ran the metro bundler with

react-native run-ios --configuration Debug > /dev/null
per instructions of the message giving after re-natal init NewApp I never tried what you mentioned above because I was fixated on doing the first instructions given in the terminal. I’ll give it a try now

ribelo23:01:34

@dgonsalves22 I use linux and android, so I won't help too much.

ribelo23:01:30

Usually, in my case, the connection problem is due to the lack of port forwarding.

ribelo23:01:50

There is a section in the documentation that says: >If this doesn't correctly detect your computer's IP you can pass your IP address explicitly: re-natal use-ios-device <IP address>. And then run react-native run-ios