React Native KeyboardAvoidingView covers last text input

后端 未结 4 978
遥遥无期
遥遥无期 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:59

    there is prop called keyboardVerticalOffset that you can pass to the KeyboardAvoidingView that will change how much the keyboard moves past the textInput. Sample of my code:

    const keyboardVerticalOffset = Platform.OS === 'ios' ? 40 : 0
    
        return (
          
            
          
        )
    

提交回复
热议问题