2017-03-08 96 views

回答

1

正确的方法是查看解雇与TouchableWithoutFeedback和调用Keyboard.dismiss()

import {Keyboard} from 'react-native' 

<TouchableWithoutFeedback onPress={Keyboard.dismiss}> 
    <View style={styles.container}> 
     <TextInput keyboardType='numeric'/> 
    </View> 
</TouchableWithoutFeedback> 
1

This帮我:

import { Keyboard } from 'react-native' 

// Hide that keyboard! 
Keyboard.dismiss();