我对本机应用(例如instagram)有反应, 我的问题是第一次使用应用程序时,加载滚动视图在包含大量数据的主页中运行非常顺畅,但是在应用程序中进行了一些重定向后,回到主页后,滚动视图在某些时候卡住了。
这是我的代码
<ScrollView
ref={ref => this.scrollView = ref}
scrollEventThrottle={400}
onScroll={({nativeEvent}) => {
this.handleScroll(nativeEvent)
}}
keyboardShouldPersistTaps='handled'
showsVerticalScrollIndicator={false}
refreshControl={
<RefreshControl
refreshing={this.state.refreshing}
onRefresh={this._onRefresh}
/>
}
>
<View style={[this.state.isSubscribingTab ? this.tabHeight() : style.mianContainer]}>
<AuctionPosts ref={instance => { this.AuctionPostsChild = instance; }} _onRefreshEnd={this._onRefreshEnd} />
<View style={style.mainContent}>
<Tabs ref={component => this._tabs = component} locked={true} tabBarUnderlineStyle={style.tabUnderLine} onChangeTab={({ i }) => this.tabChange(i)}>
<Tab activeTabStyle={{ backgroundColor: colors.white }} tabStyle={{ backgroundColor: colors.white }} heading={this.state.labels.following ? this.state.labels.following : "Following"} textStyle={style.tabTextStyle} activeTextStyle={style.activeTextTab}>
<FollowingPosts ref={instance => { this.FollowingPostsChild = instance; }} _onRefreshEnd={this._onRefreshEnd} />
</Tab>
<Tab activeTabStyle={{ backgroundColor: colors.white }} tabStyle={{ backgroundColor: colors.white }} heading={this.state.labels.subscribing ? this.state.labels.subscribing : "Subscribing"} textStyle={style.tabTextStyle} activeTextStyle={style.activeTextTab}>
<SubscribingPosts ref={instance => { this.SubscribingPostsChild = instance; }} subscribingPostCount={this.subscribingPostCount} />
</Tab>
</Tabs>
</View>
</View>
</ScrollView>
它在IOS上运行正常,但在Android上出现问题
谢谢!