-
Notifications
You must be signed in to change notification settings - Fork 28
Using re frisk with re natal
Andrey Shovkoplyas edited this page Dec 2, 2017
·
9 revisions
You can integrate re-frisk into re-natal environment and run re-frisk server automatically on running RN builds.
Add re-frisk leiningen plugin into project.clj
:plugins [[lein-re-frisk "0.5.5"]]
Add re-frisk-remote
and re-frisk-sidecar
into dev dependencies in project.clj
:profiles {:dev {:dependencies [[re-frisk-remote "0.5.3"]
[re-frisk-sidecar "0.5.4"]]}}
Open env/dev/env/user.clj and add re-frisk-sidecar
(ns user
(:require [re-frisk-sidecar.core :as rfs]))
(rfs/-main)
Open env/dev/env/android/main.cljs and env/dev/env/ios/main.cljs and add re-frisk in both
(ns ^:figwheel-no-load env.android.main
(:require [re-frisk-remote.core :as rr]))
(rr/enable-re-frisk-remote! {:host "localhost:4567"})
re-natal use-android-device genymotion
re-natal use-figwheel
And you can use
lein re-frisk use-re-natal
to change re-frisk host
re-frisk server will be running automatically with RN build
Figwheel: Starting nREPL server on port: 7888
re-frisk server has been started at http://localhost:4567