TextInput
onSubmitEditing
onSubmitEditing。
onChangeText
import {TextInput} from 'react-native' const Example = props => { render(){ renturn( <TextInput onChangeText={handleTextChange}></TextInput> ) } } const handleTextChange = text => alert(`text: ${text}`)
可以看到 onChangeText,相当于input onChange.
input onChange
Last updated 6 years ago