React Native KeyboardAvoidingView covers last text input

后端 未结 4 971
遥遥无期
遥遥无期 2021-02-01 05:08

I\'m using React Native\'s Keyboard Avoiding View with the behavior set to padding (testing on Android).

I have multiple TextInputs on my screen. When I click the final

4条回答
  •  無奈伤痛
    2021-02-01 05:52

    Depending on platform, Android or IOS, implementation can be vary a little. This is how I did.

    Add android:windowSoftInputMode="adjustResize" at AndroidManifest.xml,

     
    
     
    

    In your container

        
          
            {...}
          
        
    

    keyboardVerticalOffset tells how much the keyboard moves past the textInput.

提交回复
热议问题