每次输入内容时,它都会关闭我尝试使用double b, c, d;
...
scanf("%lf %lf", &b,&c );
d = b / c;
和onChangeText
的键盘,但没有任何改变
父项
onChange
子组件
const [searchText, setSearchText] = useState('');
function handleSearchTextChange(e: NativeSyntheticEvent<TextInputChangeEventData>) {
setSearchText(e.nativeEvent.text);
}
<PageHeader
hasSearch={true}
isLogout={true}
searchTextInput={searchText}
onSearchTextChange={handleSearchTextChange}
/>