📅  最后修改于: 2022-03-11 15:02:59.035000             🧑  作者: Mango
fetch("http:/example.com", {method: "POST",
body: "uname=value1&password=value2" // <-- Post parameters
})
.then((responseData) => {
AlertIOS.alert(
"POST Response",
"Response Body -> " + JSON.stringify(responseData.body)
)
}).done();
this.props.navigation.navigate("Home")
};
Run code snippet