Created
June 24, 2016 10:24
-
-
Save alwx/73c4844937173caa8f4d6a6475b16da2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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