Last active
August 10, 2020 14:59
-
-
Save olivergeorge/981bc5135fa47253cba50fd125495d0b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
(rf/reg-fx ::navigate (fn [a] (navigation/dispatch (navigation/navigate-action a)))) | |
(rf/reg-fx ::navigate2 (fn [[a b]] (navigation/navigate a b))) | |
(rf/reg-fx ::back (fn [] (navigation/dispatch (navigation/go-back-action)))) | |
(rf/reg-fx ::reset-stack-by-key (fn [m] (navigation/dispatch (navigation/reset-action m)))) | |
(rf/reg-fx ::pop (fn [n] (navigation/dispatch (navigation/pop-action n)))) | |
(rf/reg-fx ::pop-to-top #(navigation/dispatch (navigation/pop-to-top-action))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment