2
当我尝试ReactNative版本0.44.0它适用于iOS获取数据,但得到Android上的此错误消息:阵营本地#Networking.sendRequest拿到9个参数,预期中的8
Networking.sendRequest got 9 arguments, expected 8
两个代码iOS和Android是:
componentDidMount() {
return fetch('https://facebook.github.io/react-native/movies.json')
.then((response) => response.json())
.then((responseJson) => {
return responseJson.movies;
})
.catch((error) => {
console.error(error);
});
};
我不认为你应该把里面的'componentDidMount'一回尝试删除它,看看它是否有差别 – Raymond
我删除'componentDidMount一切回归'但我得到相同的错误信息。 –