主要是下面这段代码,用了 react-native-infinite-scroll-view 来实现无限加载的功能。
在 debug 模式好好的,但是一编译成 release 版本,向下滑动的时候 app 就要卡住。
有人遇到过这种情况嘛,一般大家都是怎么调试 release 版本的?
<ListView
refreshControl={
<RefreshControl
refreshing={this.state.refreshing}
onRefresh={() => this.onRefresh()}
/>
}
renderScrollComponent={props => <InfiniteScrollView {...props} />}
dataSource={this.state.dataSource}
distanceToLoadMore={10}
renderRow={(data) => this.getItemView(data)}
canLoadMore={this.state.canLoadMoreContent}
onLoadMoreAsync={this.loadMoreContentAsync}
/>