RN 键盘顶起及ScrollView显示底部

一、模拟器启动软键盘 快捷键:点击模拟器===》 command+k 二、键盘顶起 componentDidMount() { //获取键盘事件,使键盘顶起 Keyboard.addListener('keyboardDidShow', (event) => { this.setState({ top: event.endCoordinates.height }) }) Keyboard.addL
相关文章
相关标签/搜索