KeyboardAvoidingView not Working Properly

前端 未结 14 2385
悲&欢浪女
悲&欢浪女 2020-12-02 08:51

KeyboardAvoidingView not Working Properly

I am trying to use the KeyboardAvoidingView with behavior="padding".

For some reason, when I

14条回答
  •  日久生厌
    2020-12-02 09:33

    
    

    In the above snippet, flex is set to 1, which renders the text Input field just above the keyboard by default even when the keyboard isn't opened. And, when the keyboard pops up, the input field is further pushed up by a factor of keyboard height's offset.

    Setting flex to 0 shall fix the issue, as it did in my case.

     
      
       ...
      
     
    

提交回复
热议问题