0
在android上,當我取東西的時候,它會阻止場景中的任何交互,直到抓取完成爲止。我目前正在使用InteractionManager
React Native Fecth塊交互
在使用InteractionManager
之前,我試着直接讀取,但是它導致了轉換滯後。
有沒有粘性?
var ProductRender = React.createClass({
getInitialState: function() {
return {
product: null,
modalVisible: false,
description: null,
ready: false
};
},
componentDidMount: function() {
InteractionManager.runAfterInteractions(() => {
fetch(ENDPOINT)
.then((response) => response.json())
.then((responseJson) => {
this.setState({product : responseJson.product, related: responseJson.related});
})
.catch((error) => {
console.error(error);
});
},
});
},
render: function() {...
React Native無法自行處理? –