/receipts-native

Primary LanguageClojureEclipse Public License 1.0EPL-1.0

receipts-native

Learning project.

This is a re-working of my Receipts app in React Native. So far, just the GUI, and not much of that. But, I'll slowly add to it as I have time.

See React Native in ClojureScript for notes I'm writing as I learn this platform.

Template notes

Usage

If you don't want to use XDE (not IDE, it stands for Expo Development Tools), you can use [exp CLI](https://docs.expo.io/versions/v15.0.0/guides/exp-cli.html).
    yarn global add exp

Install Lein or Boot

Install npm modules

    yarn install

Signup using exp CLI

    exp signup

Start the figwheel server and cljs repl

leiningen users
    lein figwheel
boot users
    boot dev

    ;; then input (cljs-repl) in the connected clojure repl to connect to boot cljs repl

Start Exponent server (Using exp)

Also connect to Android device
    exp start -a --lan
Also connect to iOS Simulator
    exp start -i --lan

Add new assets or external modules

  1. require module:
    (def cljs-logo (js/require "./assets/images/cljs.png"))
    (def FontAwesome (js/require "@expo/vector-icons/FontAwesome"))
  1. Reload simulator or device

Make sure you disable live reload from the Developer Menu, also turn off Hot Module Reload.

Since Figwheel already does those.

Production build (generates js/externs.js and main.js)

leiningen users

lein prod-build

boot users

boot prod