guys, can"t this close shut down modal.alert from the outside?
const modalAlert = Modal.alert("", <Text style={styles.modalText}>{this.props.t("mycart:nowgo")}</Text>, [
{text: this.props.t("muaccount:cancel"), style: {color: "-sharp737373",fontSize:16}},
{text: this.props.t("mycart:cart"), onPress: () => this.props.navigation.navigate("Cart"), style: {color: "-sharpff3d11",fontSize:16}},
]);
setTimeout(() => {
console.log(modalAlert)
modalAlert.close()
}, 2000);
https://rn.mobile.ant.design/...
official document is also written in this way. Has any boss ever encountered such a problem