我有这个简单的屏幕
当我按下按钮键盘仍然是apear我该怎么做:"按下按钮:隐藏键盘"?
这是我的按钮代码
manage = () => {
const { navigate } = this.props.navigation;
if (this.state.text.length === 10) {
navigate('service',{text: this.state.text});
} else {
Alert.alert('?????? ????? ????? ?????? ?????? ?? 10 ?????')
}
}
<Button title='??????'
backgroundColor="#C1272D"
onPress={this.manage}>
</Button>
Run Code Online (Sandbox Code Playgroud)