add throttle to scrollview

This commit is contained in:
feruz 2019-12-12 05:14:00 +02:00
parent 903a149d99
commit f818ebc00e
3 changed files with 7 additions and 1 deletions

View File

@ -183,7 +183,11 @@ class PostDisplayView extends PureComponent {
return (
<View style={styles.container}>
<ScrollView style={styles.scroll} onScroll={event => this._handleOnScroll(event)}>
<ScrollView
style={styles.scroll}
onScroll={event => this._handleOnScroll(event)}
scrollEventThrottle={16}
>
{parentPost && <ParentPost post={parentPost} />}
<View style={styles.header}>

View File

@ -200,6 +200,7 @@ class ProfileView extends PureComponent {
<ScrollView
onScroll={this._handleOnScroll}
contentContainerStyle={styles.scrollContentContainer}
scrollEventThrottle={16}
>
<Comments
isProfilePreview

View File

@ -64,6 +64,7 @@ const WalletView = ({ setEstimatedWalletValue, selectedUser, handleOnScroll }) =
/>
}
contentContainerStyle={styles.scrollContentContainer}
scrollEventThrottle={16}
>
{!walletData ? (
<Fragment>