[英]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.