import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
View,
Image,
FlatList,
Dimensions,
WebView,
TouchableOpacity,
TextInput,
NativeModules,
DeviceEventEmitter,
Alert,
ToastAndroid,
ActivityIndicator,
AsyncStorage,
AppState,
ProgressBarAndroid,
//键盘
Keyboard,
findNodeHandle,
ScrollView,
} from 'react-native';
// 讲^^ 获取屏幕的宽度 高度
var width = Dimensions.get('window').width;
var height = Dimensions.get('window').height;
import Icon from 'react-native-vector-icons/Ionicons';
import Utils from '../common/Utils';
import theme from '../common/color'
class Login extends Component<{}> {
static navigationOptions = {
title: '登录',
};
constructor(props) {
super(props);
this.state={
phoneNumber:'',//用户名
passWord:'',//密码
//##键盘
keyboardHeight:0
};
}
componentWillMount(){
}
//点击登录按钮
loginStart(){
console.log("点击登录");
}
//获取用户名中的值
getName(text){
console.log("用户名填的值",text);
this.setState({
phoneNumber:text
});
}
getPass(text){
react-native键盘弹起遮挡输入框
最新推荐文章于 2024-05-19 09:40:23 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)