1.通过Keyboard获取键盘高度,改变定位的bottom 缺点:虚拟键盘完全弹起时,才会获取到键盘高度,定位稍有延迟,而且键盘收起时,定位会出现悬空状态,然后再回到底部 import React, { Component } from 'react' import { View, Text, Button, Keyboard, Platform, TextInput, StyleSheet, ScrollView, } from 'react-native' import rpx from…