因此,仅当用户完成付款中的3D安全步骤时,我才需要向数据库发出请求。
在屏幕底部显示以下内容,查询称为
export default compose(
withApollo,
graphql(CREATE_TRANSACTION, transactionMutationConfig),
graphql(GET_TRANSACTION, {name: "transaction"})
)(TopUpSlider);
我想要做的是这样的事情,因为我需要异步功能中的response
<WebView source = {
{
uri: secureURL
}
}
automaticallyAdjustContentInsets = {
true
}
onNavigationStateChange = {
data => {
if (data.url.includes("https://mywebsite.com/")) {
this.setState({
isSecureVisible: false,
}).then(async function() {
const response = await this.props.transaction({
variables: {
_id: transactionId,
walletId: `${this.props.WalletId}`
}
});
});
}
}
}
onError = {
err => console.log(err)
}
/>