[英]how to get element in arrarys at react-native?
我有99%的肯定,您的结果是字符串化的,因此,这就是您拥有{token: ... }
,您应该首先分析响应,然后尝试显示它。
const response = JSON.parse(result);
Alert.alert("token", response.token); // now response is parsed object and property toke is accessible
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.