我希望我的键盘没有,或者我想在本机反应中将其关闭?

I want that my keyboard don't or i want to dismiss it in react-native?

实际上,我使用了太多视图,文本 TextInput 的宽度为 100%,因此即使我滚动它也会自动触摸到 TextInput,因此我无法滚动到屏幕。有解决办法吗?

好的,所以尽量留出左右边距,以便您可以滚动。您也可以应用以下解决方案:

<ScrollView contentContainerStyle={{flexGrow: 1}}
keyboardShouldPersistTaps='handled' //<-
   >
<TextInput keyboardType='numeric'/>
</ScrollView>

import {Keyboard} from 'react-native'

<TouchableWithoutFeedback onPress={Keyboard.dismiss} accessible={false}>
<View style={{flex: 1}}>
    <TextInput keyboardType='numeric'/>
</View>
</TouchableWithoutFeedback>

  render() {
<DismissKeyboardView>
    <TextInput keyboardType='numeric'/>
</DismissKeyboardView>
 }

在我的大多数情况下,此解决方案肯定有效:

import { Keyboard } from 'react-native'

// Hide that keyboard!
Keyboard.dismiss()

在此处输入代码