Skip to content

Instantly share code, notes, and snippets.

@ghaskins
Created October 15, 2019 13:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ghaskins/f43cc2608bbd993efe2ad68a772b1168 to your computer and use it in GitHub Desktop.
Save ghaskins/f43cc2608bbd993efe2ad68a772b1168 to your computer and use it in GitHub Desktop.
(ns react-native.utils
(:require [reagent.core :as r]
[oops.core :refer [oget+]]
["react-native" :as ReactNative]))
(defn get-obj [name] (oget+ ReactNative name))
(defn adapt [class] (r/adapt-react-class (get-obj class)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment