KeyboardAvoidingView with ScrollView

后端 未结 8 501
误落风尘
误落风尘 2021-02-01 12:34

I am sort of new to react native and have one question that I did not find in react native documentation.

I am looking into this component KeyboardAvoidingView

8条回答
  •  情歌与酒
    2021-02-01 13:05

    I also tried to find the solution on the internet, but I figured it out myself. I was able to make keyboardAvoidingView to work with ScrollView on the iPhone SE simulator.

    I used padding type position, with keyboardVerticalOffset set to some higher value. I hope this helps everybody who is trapped in this situation.

    render() {
      return (
        
          
            
              
            
          
        
      );
    }
    

提交回复
热议问题