Merge pull request #2044 from ecency/nt/scrolling-comment

Nt - Scrolling Comment
This commit is contained in:
Feruz M 2021-08-17 19:24:40 +03:00 committed by GitHub
commit 80c157cad2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,4 @@
import { Dimensions } from 'react-native';
import EStyleSheet from 'react-native-extended-stylesheet';
export default EStyleSheet.create({
@ -26,6 +27,9 @@ export default EStyleSheet.create({
backgroundColor: '$primaryBackgroundColor',
marginBottom: 40,
},
scrollContent: {
minHeight: Dimensions.get('window').height,
},
footer: {
flexDirection: 'column',
marginTop: 19,

View File

@ -204,6 +204,7 @@ const PostDisplayView = ({
<View style={styles.container}>
<ScrollView
style={styles.scroll}
contentContainerStyle={styles.scrollContent}
onScroll={(event) => _handleOnScroll(event)}
scrollEventThrottle={16}
refreshControl={<RefreshControl refreshing={refreshing} onRefresh={onRefresh} />}