跳过导航
Here’s how I handle keyboard avoidance in React Native 👇
0:00 / 4:05

Here’s how I handle keyboard avoidance in React Native 👇

Beto

@betomoedano1.1万 位关注者

在 X 上查看
704 个赞下载原帖

51,122 次观看

Here’s how I handle keyboard avoidance in React Native 👇 The keyboard covering your inputs is one of the most annoying UX issues on mobile. In this video, I show how I use react-native-keyboard-controller with reanimated to smoothly avoid this problem (👨‍💻 source code below)

11 条评论

评论来自 X (Twitter) 上的原帖

  • Beto 的头像

    @betomoedano

    Source Code: If you are interested in my scheduling app, get access at:

    5 个赞

  • Rainmaker 的头像

    @RainmakerTrade

    Don’t trust your strategy until it’s passed this test. Walk-Forward Validation is the key to crafting a reliable machine learning model. Learn how this method helps you avoid overfitting and prepares your model for live market scenarios. Full article and code on my Substack:

    37 个赞

  • Vitor Oliveira 的头像

    @_vitoroliv

    Thank you for the tip, Beto! Recently I discovered we can achieve this behavior using insets.ime from react-native-unistyles (v3). @jpudysz did a demo in this live on the Expo youtube channel.

    5 个赞

  • Beto 的头像

    @betomoedano

    @jpudysz Oh that is awesome! 👏 thanks for sharing 📝

    2 个赞

  • Nevo David 的头像

    @nevodavid

    pretty cool fix, honestly this problem annoys me like crazy - you think mobile ui stuff ever stops being a pain point or its just the price for flexibility

    1 个赞

  • Sujeet Kumar 的头像

    @SujeetkumarSk16

    That keyboard related all issue should fix from react native core. It's really very annoying 😭 to handle every screen

    1 个赞

  • Dibakar Mandal 的头像

    @dibakarrmandal

    Can this handle android custom keyboards as well? Like Ms swiftkey

    1 个赞

  • Thomas Viaud 的头像

    @viaudthomas

    What is the difference between your code and using components such as KeyboardAvoidingView or others provided with the package ?

  • Thijs Sondag 的头像

    @ThijsSondag

    This is super helpfull, since I'm building a tool that sits on top of the keyboard 🙂 Thanks for this!

  • MartycFly.base.eth | 𝝠 |👨‍🎓 = 🔑 的头像

    @Marty_cFly

    Love all the content 🙌🙌

  • Alexandre Morgado 的头像

    @Almo_pt

    Thanks for this tutorial! I was struggling with something similar and i used KeyboardAwareScrollView which made it work perfectly!