Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在应用程序中进行一些重定向后,反应本机Android Scrollview速度减慢_Android_React Native_Scrollview_React Native Android - Fatal编程技术网

在应用程序中进行一些重定向后,反应本机Android Scrollview速度减慢

在应用程序中进行一些重定向后,反应本机Android Scrollview速度减慢,android,react-native,scrollview,react-native-android,Android,React Native,Scrollview,React Native Android,我有像instagram这样的本地应用程序, 我的问题是,第一次应用程序加载scrollview时,它在主页上运行得非常顺利,数据量很大,但在应用程序中进行了一些重定向后,返回主页,scrollview在某些点上卡住了 这是我的密码 <ScrollView ref={ref => this.scrollView = ref} scrollEventThrottle={400}

我有像instagram这样的本地应用程序, 我的问题是,第一次应用程序加载scrollview时,它在主页上运行得非常顺利,数据量很大,但在应用程序中进行了一些重定向后,返回主页,scrollview在某些点上卡住了

这是我的密码

               <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>
this.scrollView=ref}
scrollEventThrottle={400}
onScroll={({nativeEvent})=>{
这是handleScroll(nativeEvent)
}}
键盘应为“已处理”
showsVerticalScrollIndicator={false}
刷新控制={
}
>
{this.AuctionPostsChild=instance;}}}\u onRefreshEnd={this.\u onRefreshEnd}/>
this._tabs=component}locked={true}tabBarUnderlineStyle={style.tabUnderLine}onChangeTab={({i})=>this.tabChange(i)}>
{this.followPostSchild=instance;}}}\u onRefreshEnd={this.\u onRefreshEnd}/>
{this.SubscribingPostsChild=instance;}}subscribingPostCount={this.subscribingPostCount}/>
它在IOS中运行良好,但在Android中存在问题

谢谢