Skip to content

Instantly share code, notes, and snippets.

var noerror = 1;
console.info("Hello Mars!");
@Knotschi
Knotschi / react-native-reagent-focusable-input.cljs
Last active April 15, 2020 11:13
react native reagent text input focus prop from state
(require '[reagent.core :as r :refer [atom]
'[reagent.impl.util :as ru]])
(def view (r/adapt-react-class (.-View js/React)))
(def input (r/adapt-react-class (.-TextInput js/React)))
(defn focusable-input [init-attrs]
(r/create-class
{:display-name "focusable-input"
:component-will-receive-props