Skip to content

Support of external packages

Compare
Choose a tag to compare
@artemyarulin artemyarulin released this 06 Jan 06:51
· 18 commits to master since this release

Now there is no need to look for packages ID in order to use any external one. Simply create repl app using this:

(ns repl.repl
  (:require [ktoa.repl :as repl :refer-macros [start-repl]]))

(start-repl {:app-name "app"
             :base-url "http://localhost:3449/js"
             :root-ns  "app.core"
             :modules ["react-native" "react-timer-mixin"]}) ;; Here goes the list of packages

Later on just use simple (js/require "react-timer-mixin") in your code.

More information here Require RN packages

BREAKING CHANGES:
ktoa.repl/start-repl now a macros. Make sure you changed the code from:

(ns repl.repl
  (:require [ktoa.repl :refer [start-repl]]))

to

(ns repl.repl
  (:require [ktoa.repl :as repl :refer-macros [start-repl]]))