Fork me on GitHub
#reagent
<
2018-02-20
>
Petrus Theron10:02:09

Hey peeps. Using Reagent with React Native and I'm seeing keyboard input being dropped when typing fast on simulator or real device. So e.g.

(defonce !input (atom "")) ;; outside

(defn some-view [props]
  ...
[rn/text-input
         {:value       @!input
          :onChangeText #(reset! !input %)
          }])
What am I doing wrong? I've tried to listen for :onSubmitEditing, but that only fires when you tap return on keyboard. Do I need to tell it when to re-render with shouldComponentUpdate?

souenzzo12:02:19

this atom is a reagent/atom @petrus?