import React, {Component} from 'react'; import StorageUtil from '../utils/StorageUtil'; import Utils from '../utils/Utils'; import Base64Utils from '../utils/Base64'; import Toast from '@remobile/react-native-toast'; import {Button, Dimensions, Modal, StyleSheet, TextInput, TouchableOpacity, View} from 'react-native'; const {width} = Dimensions.get('window'); export default class ReplyPopWin extends Component { constructor(props) { super(props); this.state = { show: false, inputContent: '', isUpdateUserInfo: false }; StorageUtil.get('username', (error, object) => { if (!error && object != null) { this.setState({username: object.username}); } }); } componentDidMount() { let input = this.refs.textInput; if (!Utils.isEmpty(input)) { input.focus(); } } render() { let placeholderText = ''; if (!this.state.isUpdateUserInfo) { placeholderText = "回复" + this.state.momentUsername; } else { placeholderText = "取个中文昵称,当然英文的也没啥问题"; } return ( this.closeModal()}> this.closeModal()} style={styles.modalContainer}> this.setState({inputContent: text})} /> { !Utils.isEmpty(this.state.inputContent) ? (