Skip to content

Instantly share code, notes, and snippets.

@alwx
Created June 24, 2016 10:24
Show Gist options
  • Save alwx/73c4844937173caa8f4d6a6475b16da2 to your computer and use it in GitHub Desktop.
Save alwx/73c4844937173caa8f4d6a6475b16da2 to your computer and use it in GitHub Desktop.
(def storage
(.-AsyncStorage js/ReactNative))
(def transit-reader (t/reader :json))
(def transit-writer (t/writer :json))
;; the process of saving to database
(.setItem storage "dataset" data (fn [_]
(.log js/console "data saved!")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment