Tag: textinputlayout

React Native:处理多个数字input

我正在构build一个数字文本inputmatrix,由于数字键盘没有“ 返回”或“ 下一步”button,因此遇到了很多麻烦。 另外,数字键盘没有Done栏,所以我不得不使用TouchableWithoutFeedback组件来处理它。 我想知道是否有一个build议的方式无缝input许多数字到反应原生TextInputmatrix? 下面是我的代码,我已经着色了容器,以帮助奠定应用程序。 import React from 'react'; import { StyleSheet, Text, View, TextInput, TouchableWithoutFeedback, Keyboard} from 'react-native'; class InputBox extends React.Component { render() { return ( <View style={styles.inputContainer}> <TextInput keyboardType="numeric" style={styles.matrixNumberInput} /> </View> ) } } export default class App extends React.Component { constructor(props) { super(props); this.state = {'size': 3}; } render() […]