React native参考手册
组件:KeyboardAvoidingView | Components: KeyboardAvoidingView
KeyboardAvoidingView
它是解决视图常见问题的组件,需要摆脱虚拟键盘的方式。它可以根据键盘的位置自动调整其位置或底部填充。
道具
ViewPropTypes props...
behavior?: enum('height', 'position', 'padding')
contentContainerStyle?: ViewPropTypes.style
内容容器(视图)的行为是'位置'时的样式。
keyboardVerticalOffset: number
这是用户屏幕顶部与反应原生视图之间的距离,在某些使用情况下可能不为零。
方法
relativeKeyboardHeight(keyboardFrame: object):
onKeyboardChange(event: object)
onLayout(event: ViewLayoutEvent)
组件:KeyboardAvoidingView | Components: KeyboardAvoidingView相关
React Native 是一个 JavaScript 的框架,用来撰写实时的、可原生呈现 iOS 和 Android 的应用。
主页 | https://facebook.github.io/react-native/ |
源码 | https://github.com/facebook/react-native |
发布版本 | 0.49 |