Problems with modal components of ant design react

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);

clipboard.png

https://rn.mobile.ant.design/...
official document is also written in this way. Has any boss ever encountered such a problem

Apr.12,2022

there should be bug, which has not been solved yet.

https://github.com/ant-design...


has the boss solved it? I have the same problem

.
Menu