第6.4章:输入框定位在底部(虚拟键盘弹起)

image.png
import React, { Component } from 'react'
import {
    View,
    Button,
    Platform,
    TextInput,
    StyleSheet,
    ScrollView,
    KeyboardAvoidingView
} from 'react-native'


export default class PhoneList extends Component {
    constructor(props) {
        super(props);
        this.state = {
        }
    }
    loseFocus() {
        this.refs.input.blur()
    }
    render() {
        let behavior = Platform.OS === 'ios' ? 'position' : null;
        return (
            
                
                    
                    

你可能感兴趣的:(第6.4章:输入框定位在底部(虚拟键盘弹起))