This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-18
Channels
- # beginners (15)
- # boot (23)
- # cider (8)
- # clara (29)
- # cljs-dev (86)
- # cljsrn (36)
- # clojars (9)
- # clojure (211)
- # clojure-dusseldorf (5)
- # clojure-italy (21)
- # clojure-sg (2)
- # clojure-spec (4)
- # clojure-uk (12)
- # clojurescript (204)
- # cursive (5)
- # data-science (12)
- # datomic (15)
- # dirac (99)
- # emacs (1)
- # events (2)
- # figwheel (1)
- # fulcro (9)
- # graphql (27)
- # hoplon (50)
- # instaparse (9)
- # juxt (61)
- # keechma (6)
- # leiningen (1)
- # luminus (4)
- # lumo (24)
- # off-topic (24)
- # om (16)
- # onyx (17)
- # parinfer (35)
- # pedestal (3)
- # planck (12)
- # protorepl (8)
- # re-frame (15)
- # reagent (22)
- # ring (1)
- # rum (1)
- # spacemacs (3)
- # uncomplicate (4)
- # vim (5)
- # yada (1)
Does anyone have experience/advice about reacting to on-screen keyboard visibility so that the keyboard doesn't obscure the current input field ?
right, I know that exists
is that a 100% solution in your experience?
I tried it randomly in a form and it didn't do anything
do you know what the conditions are for this to work?
on iOS
is it a requirement that all input fields are direct children of the ScrollView?
These are my props:
{:behavior "height"
:style {:flex 1
:justify-content "center"
:align-items "center"
:padding-horizontal 20
:padding-top 20"}}
I guess I don't really understand how it works, and the docs are stenographic
here's the code: https://github.com/facebook/react-native/blob/v0.46.4/Libraries/Components/Keyboard/KeyboardAvoidingView.js
I'll give it another try and report back
i’m working on this too. i naively replaced all view
s with keyboard-avoiding-view
s and nothing happened. makes sense; i haven’t set OnKeyboardChange or anything. i’m gonna fiddle around with it…
I found something even better: https://github.com/douglasjunior/react-native-keyboard-manager
once you drop in that library, it handles the keyboard automagically for you
I’ve used https://github.com/APSL/react-native-keyboard-aware-scroll-view in production and found that it works well
In my experience the workflow to getting KeyboardAvoidingView to work is: Step 1. You add the compoentn Step 2. You randomly go through all the possible prop values for behaviour Step 3. If this still doesn't work you randomly change styles in container elements in your screen and go back to Step 2. Step 4. Get a drink in the bar…
are things any better in plain ios/objectivec?
no wonder that https://github.com/hackiftekhar/IQKeyboardManager has 9000+ github stars
I followed this https://www.npmjs.com/package/react-native-keyboard-manager and works fine
No. But it is probably a great way to do it @lepistane . Others have written iOS apps with ClojureScript prior to React Native. One example way is https://github.com/mfikes/goby
And, if you are considering a game, I’d argue that React Native might not be the best fit, at least for fast-action canvas rendering. In that case, you could consider Ejecta http://blog.fikesfarm.com/posts/2017-04-29-clojurescript-ejecta.html
Even then, it is possible to build a game with React Native. I did one recently: http://fikesfarm.com/vocabulario (it employs mild use of animations)